Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5cff0e4484 | ||
|
|
61712b0872 | ||
|
|
98f71d5481 | ||
|
|
d54c740748 | ||
|
|
86a2768c81 | ||
|
|
9dee43705a |
@@ -1,2 +0,0 @@
|
||||
name,commit sha,author,date
|
||||
worktree-kind-watching-hearth,e8c0c0b777d31fa94cd3f01fbf9c68b165d77015,Jonathan Teran Carballo,2026-09-13T23:18:47-03:00
|
||||
|
@@ -79,7 +79,9 @@ def check_merge_conflicts(target: str):
|
||||
print="Realizando merge de prueba para verificar conflictos"
|
||||
)
|
||||
|
||||
Git("merge", abort=True).exec(print="Abortando merge de prueba", check=False)
|
||||
# Si el merge no llegó a realizarse (por ejemplo, "Already up to date") no hay nada que abortar
|
||||
if Git.is_merging():
|
||||
Git("merge", abort=True).exec(print="Abortando merge de prueba")
|
||||
|
||||
if merge_conflicts:
|
||||
base.io_error(
|
||||
|
||||
@@ -63,6 +63,11 @@ class Git:
|
||||
def get_branches(prefix: str = ""):
|
||||
return Git._get_references("heads/" + prefix)
|
||||
|
||||
@staticmethod
|
||||
def is_merging() -> bool:
|
||||
"""Indica si hay un merge en curso (existe MERGE_HEAD), con o sin conflictos."""
|
||||
return Git("rev-parse", "MERGE_HEAD", quiet=True, verify=True).code() == 0
|
||||
|
||||
@staticmethod
|
||||
def status():
|
||||
return list(map(Git.Status, Git("status", porcelain=True).lines(False)))
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
from subprocess import CalledProcessError, SubprocessError
|
||||
from typing import Annotated
|
||||
|
||||
import click
|
||||
import typer
|
||||
from rich.markup import escape
|
||||
from rich.traceback import Traceback
|
||||
@@ -70,7 +69,7 @@ def _print_error(message: str, title: str, e: BaseException):
|
||||
base.io_error(message, title=title)
|
||||
console.print(
|
||||
Traceback.from_exception(
|
||||
type(e), e, e.__traceback__, suppress=[click, typer]
|
||||
type(e), e, e.__traceback__, suppress=[typer]
|
||||
)
|
||||
)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user