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

Re: git log --pretty=format:%h prints (unrequired) abbreviated sha

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Sep 25, 2009, 14:12 UTC
Message-ID
<4ABCCFE4.6070202@viscovery.net>
In-Reply-To
<e5bfff550909250704x724fd4c7lebe7184b4557c7a9@mail.gmail.com>
Marco Costalba schrieb:
Show 7 quoted lines
> So somehow the problem is that all the commands are lowercased, and
> this explains why pretty format %H is interpreted as %h so that sha
> abbreviated form is used.
> 
> Now the question is: how to restore normal case sensitive command parsing ?
> 
> P.S: Please, at least answer this last question ;-)
I cannot.

Please try calling the commands from CMD. To do that in a regular msysgit installation where you did not choose the option to set the PATH, it should be sufficient to point your PATH to <installdir>\git\bin;<installdir>\bin;%PATH% (although I'm not sure about the exact paths - as I said, I don't install msysgit). Does that work?

-- Hannes
Previous: Marco CostalbaNext: Marco Costalba
Message 7 of 19 in “git log --pretty=format:%h prints (unrequired) abbreviated sha”
  1. Marco CostalbaSep 25, 2009
  2. Marco CostalbaSep 25, 2009
  3. Johannes SixtSep 25, 2009
  4. Marco CostalbaSep 25, 2009
  5. Marco CostalbaSep 25, 2009
  6. Marco CostalbaSep 25, 2009
  7. Johannes SixtSep 25, 2009
  8. Marco CostalbaSep 25, 2009
  9. Johannes SixtSep 25, 2009
  10. Marco CostalbaSep 25, 2009
  11. alexandrulSep 25, 2009
  12. Marco CostalbaSep 25, 2009
  13. Marco CostalbaSep 25, 2009
  14. alexandrulSep 25, 2009
  15. Marco CostalbaSep 25, 2009
  16. alexandrulSep 25, 2009
  17. Marco CostalbaSep 25, 2009
  18. Marco CostalbaSep 26, 2009
  19. alexandrulSep 27, 2009

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.