Add /branch command #1

Merged
InValidFire merged 12 commits from test into main 2022-08-20 16:07:54 +00:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit ebd9092788 - Show all commits

View File

@ -29,7 +29,9 @@ async def get_git_branch():
async def get_git_remote():
remote = await create_subprocess("git", "branch", "-vv")
return remote.split("[")[1].split("]")[0]
for line in remote.split("\n"):
if "*" in line:
return line.split("[")[1].split("]")[0]
async def get_git_head_diff_branch(branch: str) -> str: