git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [suggestion] Include commit-ish in git status output

From
Samuel Lijin <sxlijin@gmail.com>
Date
Jun 15, 2017, 23:55 UTC
Message-ID
<CAJZjrdW=1MbT=Lmouswez3W4hGP=anuMqMnQPkLta_fhUU4hCg@mail.gmail.com>
In-Reply-To
<CACcTrKfPKdPCVONMcGRbisK_WOt70yLdjavZnLTMMVocrwzk1w@mail.gmail.com>
On Thu, Jun 15, 2017 at 7:43 PM, Mahmoud Al-Qudsi <mqudsi@neosmart.net> wrote:
Show 8 quoted lines
> Hello all,
>
> I hope it is not considered too forward of me for my first post to this list
> to be a suggestion on a change to git’s behavior (though not in any
> functional manner); but a persistent frustration for me and everyone I’ve
> worked with (so, yes, 100% based off of anecdata) has been that the output
> of `git status` does not include the commit or commit-ish, and one must
> resort to a `git rev-parse HEAD` call.
Can you elaborate on why you consider this useful specifically?
Do you think adding a $(git rev-parse HEAD) to your PS1 would do the trick?
Show 7 quoted lines
> I apologize unreservedly if this matter has already been discussed and put to
> rest; I attempted to search the archives for a reference to this suggestion but
> was not met with any matches.
>
> Additionally, if this list is not the right place to make such a suggestion,
> then I would appreciate if someone could kindly point me in the correct
> direction and apologize for littering.
No worries, you're in the right place.
> Thank you kindly,
>
> Mahmoud Al-Qudsi
> NeoSmart Technologies
Previous: Mahmoud Al-QudsiNext: Mahmoud Al-Qudsi
Message 2 of 6 in “[suggestion] Include commit-ish in git status output”
  1. Mahmoud Al-QudsiJun 15, 2017
  2. Samuel LijinJun 15, 2017
  3. Mahmoud Al-QudsiJun 16, 2017
  4. Junio C HamanoJun 16, 2017
  5. Mahmoud Al-QudsiAug 7, 2017
  6. Junio C HamanoAug 7, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.