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

Re: RFC: Adding an option to log-like commands to call an external command for each revision

From
ASArtur Skawina <art.08.09@gmail.com>
Date
Sep 11, 2010, 22:17 UTC
Message-ID
<4C8BFFEB.5090902@gmail.com>
In-Reply-To
<AANLkTi=WokEQMDc92SoWXPJW67dy0q79WW9RajrBHRx3@mail.gmail.com>
On 09/11/10 17:56, Ævar Arnfjörð Bjarmason wrote:
Show 8 quoted lines
>>> I have this alias in my .gitconfig:
>>>
>>>     review = "!f() { for rev in $(git rev-list --reverse \"$@\"); do
>>> git show $rev; done; }; f"
>>>
>>> I use it after I "git pull" to see what changed, e.g.:
>>>
>>>     git review 49ea7b8..e1ef3c1
> I just like the UI of having each commit "pop up" where I can either
> page up/down within the commit, or dismiss it with "q" and go to the
> next one.
Something like
$ LESS="$LESS +/^commit " git whatchanged -p --reverse ORIG_HEAD..

will let you jump between the commits using 'n' for next, 'N' for previous.

Not 100% the same, i know, but much faster than your solution. (mostly because of pipelining; while you're reviewing one change the next commits are already being prepared. For deep, but filtered queries, i often do it more explicitly as "git..|bag|less +/^commit" to avoid the stalls.)

artur
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 7 of 9 in “RFC: Adding an option to log-like commands to call an external command for each revision”
  1. Ævar Arnfjörð BjarmasonAug 29, 2010
  2. Jonathan NiederAug 29, 2010
  3. Jeff KingAug 30, 2010
  4. Ævar Arnfjörð BjarmasonSep 11, 2010
  5. Mark LodatoSep 11, 2010
  6. Ævar Arnfjörð BjarmasonSep 11, 2010
  7. Artur SkawinaSep 11, 2010
  8. Junio C HamanoSep 12, 2010
  9. Ævar Arnfjörð BjarmasonSep 12, 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.