-
Notifications
You must be signed in to change notification settings - Fork 2.7k
git status
porcelain output should include remote details
#1715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
@shiftkey do you have any cycles to spare to work on this? I could assist, but sadly I won't find the time to work on this any time soon... |
@dscho no problem. I've been mulling this over again recently to take it further than just adding |
@shiftkey we could also just add it to the ideas for Outreachy/Google Summer of Code... |
@dscho my elevator pitch:
I haven't thought much about what this would look like, but I'm happy to ponder on this more and submit it wherever you think fits best. |
@shiftkey why not just add that elevator pitch? It might be a good idea for the person who picks up that project to decide upon the details of the implementation. |
In the meantime, somebody gave me the idea to open up https://github.com/gitgitgadget/git/issues for ideas like this (in particular non-Windows-specific ones). It does seem as if volunteers show up occasionally, plucking off some tickets here and there. @shiftkey how about closing this here ticket and opening a fresh one over there, leading with your elevator pitch? |
Closing this as stale. |
This isn't a defect but is instead an opportunity to improve Git for scripting scenarios.
In Git 2.16
git for-each-ref
learned about how to listupstream
andpush
information - for when a local branch is tracking a remote branch:git/Documentation/RelNotes/2.16.0.txt
Lines 50 to 53 in 52015aa
An example of this:
This means we can handle scenarios where users have a
/
in their remote name - it's not something that users often do, but it's something that we should be able to handle when working with Git repositories.One place related to this is
git status
- it has a way to emit the ahead/behind information for-free alongside seeing what's changed in your directory:It'd be nice to be able to emit these new values from (I talked about this with @dscho a while ago and he indicated this should be a new version of the porcelain format for backwards compatibility reasons):
The text was updated successfully, but these errors were encountered: