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

Re: 'show' pretty %B without a diff

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 21, 2010, 18:04 UTC
Message-ID
<20101221180459.GA25812@burratino>
In-Reply-To
<m38vzjl1yr.fsf@localhost.localdomain>
Jakub Narebski wrote:
> I guess that `-s' should be present also in git-show manpage.

It is mentioned in the examples section since v1.7.3.3~42. That manpage needs a rework in general, though.

> There is also `git log -1` (or `git log -1 --no-walk` for paranoid).
Or even "git diff-tree -s --pretty=%B <commit>" if that is the intent.

As much as a person might dislike plumbing, plumbing is git's current stable API. Maybe the libgit2 project will come up with something better[1]. Until then, I am happy to have some commands that avoid user-friendliness niceties (like implied "HEAD") that would create pitfalls when scripting.

Maybe it would be worth adding a plumbing example under the EXAMPLES for each porcelain? I can see that having to learn a second set of commands might make life hard (like scripting in the bourne shell when one is a csh user).

[1] I am pessimistic since that project has not made itself very visible for feedback from the git list or submitted changes back to git. It would be great to be surprised.

Previous: Jakub NarebskiNext: Martin Langhoff
Message 7 of 10 in “'show' pretty %B without a diff”
  1. Peter VereshaginDec 20, 2010
  2. Junio C HamanoDec 20, 2010
  3. Peter VereshaginDec 20, 2010
  4. Junio C HamanoDec 20, 2010
  5. Peter VereshaginDec 21, 2010
  6. Jakub NarebskiDec 21, 2010
  7. Jonathan NiederDec 21, 2010
  8. Martin LanghoffDec 21, 2010
  9. Jakub NarebskiDec 21, 2010
  10. peter@vereshagin.orgDec 22, 2010

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.