git-graph-branch's People
git-graph-branch's Issues
Support git-worktree
git-worktree allows one to have multiple worktrees for the same repo. It works by creating a .git
file instead of directory, which points back to the parent checkout. It would be great if git-graph-branch
worked in a worktree (currently it has deep assumptions baked in about files living under .git/
).
Grey out branches merged into upstream
Visually indicate branches that have been merged into their local upstream, ideally in grey.
Notes:
- Branches merged into remote upstream of the same name do not count (these are assumed to be local replicas).
- Any grey branch should be able to be passed to
git branch -d
without a warning.
Fatal error if ref missing
Traceback (most recent call last):
File "git_graph_branch/__init__.py", line 58, in main
print_branch(art, b, config)
File "git_graph_branch/display.py", line 72, in print_branch
print(SYNC_STATUS_ICON[remote_sync_status(b)], end="")
^^^^^^^^^^^^^^^^^^^^^
File "git_graph_branch/display.py", line 50, in remote_sync_status
if b.upstream.commit.commit_date > b.commit.commit_date:
^^^^^^^^^^^^^^^^^
File "git_graph_branch/git/branch.py", line 45, in commit
with open(self._ref, "r", encoding="ascii") as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '.../.git/refs/remotes/origin/main'
The underlying problem in this particular case appears to be #4, as refs/remotes/origin/main
is present in .git/packed-refs
, but in general we should be resilient to missing upstream refs.
Support packed refs
Older refs may be removed from .git/refs
and packed. Currently this results in them disappearing from the git-graph-branch
output.
Hard to diagnose failures
Internal errors currently require a code change to understand, as the stack trace is removed. A debug flag to reenable the stack trace would help.
Bug in pack.py
File "git_graph_branch/git/pack.py", line 302, in packs
return PackDir(git_dir() / "objects" / "pack")
File "git-graph-branch/git_graph_branch/git/pack.py", line 283, in __init__
packs.sort(reverse=True)
TypeError: '<' not supported between instances of 'Pack' and 'Pack'
git-graph-branch/git_graph_branch/git/pack.py
Line 283 in fa8789e
Watch missing upstream changes
I've noticed that when adding a new branch with git checkout -b
, the upstream link is missing until I kill and restart git-graph-branch. This is on a polled filesystem.
Support merge commits
While rebasing onto main is usually preferred, sometimes during github review cycles it's cleaner to instead merge in latest changes from main (there's even a button on the UI). It would be nice if the "N unmerged" notification took these into account, as currently it shows branches as being behind main even when they are not.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.