Comments (4)
Especially the latter two points would consume quite an amount of screen real estate, and the branch list is rather narrow by default today. It might require another tool that gives more details about branches.
Also note that Git has zero knowledge about "parent" branches because commits do not carry the information on which branch they were created. So all that would be conceivable is a heuristic to guess which of the following branches might be the "correct" parent branch: main, release/1.0.0, release/1.1.0, feature/the-next-big-thing, or anything else that was "forked" after the feature branch but has a common history with it.
Yes, I also call those "uncommitted" changes "stashed changes" even though it might confuse somebody else because this does not use the Git stash.
from squot.
Especially the latter two points would consume quite an amount of screen real estate, and the branch list is rather narrow by default today. It might require another tool that gives more details about branches.
What about a simple tooltip, plus maybe an icon indicating that there is at least one different commit?
Also note that Git has zero knowledge about "parent" branches because commits do not carry the information on which branch they were created. So all that would be conceivable is a heuristic to guess which of the following branches might be the "correct" parent branch: main, release/1.0.0, release/1.1.0, feature/the-next-big-thing, or anything else that was "forked" after the feature branch but has a common history with it.
Sure, you're right ... probably too many heuristics ... GitHub does have this information (PR target branch), but that's a different story. Maybe let's ignore this point. :-)
from squot.
GitHub also only knows the destination branch because you tell it which one to use, or otherwise the "main" branch as configured in the GitHub project (for this Squot project, it is the develop branch). But a plain Git repository does not know which branch is the "main" one.
A tooltip would get around the real estate issue, right. So what remains is an indication that there are stashed changes on a branch, an indication that there are any commits that the upstream branch (if any!) does not have, and in the tooltip how many commits these are.
from squot.
Exactly! :-)
Last comment:
an indication that there are any commits that the upstream branch (if any!) does not have, and in the tooltip how many commits these are.
I would be interested in both the number of commits ahead (that only the local branch has) and behind (that only the upstream branch has). I like the representation of these numbers in VS Code:
... so maybe, three new icons would be required. And some of them should be combinable. Maybe prepend an asterisk (*
) to branches with uncommitted changes instead of using a true icon for them?
from squot.
Related Issues (20)
- Key not found: objectClassName HOT 3
- Cannot add a package that consists only of extension methods without creating a class category for it
- .package confusion after setup HOT 1
- [Squeak 5.3] Installation asks for author initials HOT 4
- Allow to load author settings from ~/.gitconfig
- Removing a remote-tracking branch should ask whether to also delete it from the remote
- Cannot view a branch named "hooks" in the Git Browser
- Switching away from an empty branch errors HOT 3
- Git Browser cannot find my package to load/trick HOT 2
- Remove FileList2 dependency
- Add instructions for citation HOT 3
- Redundant override of `PositionableStream>>#peek:`
- Dependency on old version of INIFile
- Squit: Highlight extension classes and methods in diff trees
- test
- Put the getting started text from the readme into a HelpBrowser page HOT 3
- Attempting to load Seaside fails HOT 2
- MessageNotUnderstood: UndefinedObject>>key from GitRefCache>>#allWithPrefix:ifAbsentPutAll: HOT 3
- Unpack git objects during pull in background? HOT 3
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.
from squot.