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

Re: gitk from subdirectory

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 31, 2007, 04:33 UTC
Message-ID
<7v642w5nmd.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<7vabs85ntg.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <junkio@pobox.com> writes:
> Since commit cdaee5db165ba8bae8d3b524950e61666fc36a84 (gitk:
> Improve handling of -- and ambiguous arguments), running gitk
> from a subdirectory limits the displayed history with the ...

FYI, I picked up your wish in the kernel list and have been experimenting with this 5-liner whenever I refer to a commit in the past:

        #!/bin/sh
        for commit
        do
                git show -s --pretty=oneline "$commit"
        done |
        sed -e 's/^[^ ]* /&(/' -e 's/$/)/'
Previous: Junio C HamanoNext: Linus Torvalds
Message 2 of 9 in “gitk from subdirectory”
  1. Junio C HamanoAug 31, 2007
  2. Junio C HamanoAug 31, 2007
  3. Linus TorvaldsAug 31, 2007
  4. Junio C HamanoAug 31, 2007
  5. Junio C HamanoAug 31, 2007
  6. Junio C HamanoAug 31, 2007
  7. Junio C HamanoAug 31, 2007
  8. Linus TorvaldsAug 31, 2007
  9. Junio C HamanoAug 31, 2007

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.