Thread (7 messages) flat view 7 messages, 2 authors, 2016-06-15

Re: [BUG?] Path limiting in "git log" when run from another subdir

From: Johan Herland <hidden>
Date: 2016-06-15 22:54:51

On Mon, Sep 24, 2012 at 3:30 PM, Nguyen Thai Ngoc Duy [off-list ref] wrote:
quoted
In any case, what is the _preferred_ way to path-limit "git log" to
Documentation/RelNotes, when my cwd is t/?
If you want worktree root no matter where you stand, use "git log --
:/Documentation/RelNotes". The idea is ":" starts some "magic" in path
handling, but for now there is only ":/". Or if you don't like magic,
`git rev-parse --git-dir` should give you worktree's root to start
with.
Ah, ok, that's exactly what I wanted. Then I guess "cd t && git log --
/Documentation" should have never worked in the first place, and I
question about "git log -- /Documentation/RelNotes" was misguided.

Thanks for clearing up my confusion.


...Johan

-- 
Johan Herland, [off-list ref]
www.herland.net
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help