Skip to contentSkip to conversation

Improve `git log -L` functionality

DISCUSSION KES 2 participants 3 messages Mar 6, 2018 – Mar 10, 2018

lore
Share & tools
lore

KES

author
#0 lore raw

Hi.
I want to Trace the evolution of the line range.
And not committed change is sort of evolution and should be taken into account by -L option.

Currently I MUST stash save change,
look actual line number,
trace evolution,
stash pop to bring back current change.

EXPECTED:
Allow to use those line numbers which I see in my editor without excess stash save/stash pop commands

If file has not committed change then this change maybe shown by -L as commit NOT COMMITTED YET If file staged 'commit STAGED'

More description what is comming on:
https://stackoverflow.com/q/49130112/4632019

author
#1 lore raw

uh... seems nobody is interested in this functionality (

06.03.2018, 17:46, "KES" <[email protected]>:

Quoted 18 lines

Hi.
 I want to Trace the evolution of the line range.
And not committed change is sort of evolution and should be taken into account by -L option.

Currently I MUST stash save change,
look actual line number,
trace evolution,
stash pop to bring back current change.

EXPECTED:
Allow to use those line numbers which I see in my editor without excess stash save/stash pop commands

If file has not committed change then this change maybe shown by -L as commit NOT COMMITTED YET If file staged 'commit STAGED'

More description what is comming on:
https://stackoverflow.com/q/49130112/4632019

#2 lore raw

On Sat, Mar 10 2018, KES jotted:

Quoted 1 line

uh... seems nobody is interested in this functionality (

I'm interested in this, and would review a patch to implement this.

Generally speaking when you send a "wouldn't it be neat if..." message to the Git mailing list a lot of people read it (including myself at the time), but don't find it useful to add anything to it.

Sure, this feature as described would be neat if it existed, but without a patch there's not much to discuss.

In particular the trade-offs of teaching the log machinery to somehow stitch together the worktree state without the user somehow getting the state into a tree may not be worth it, or it may be. We'd have to have a working patch to see.

So if you're interested in working on this don't let the seeming lack of interest discourage you.

Quoted 19 lines

06.03.2018, 17:46, "KES" <[email protected]>:

Quoted 18 lines

Hi.
I want to Trace the evolution of the line range.
And not committed change is sort of evolution and should be taken into account by -L option.

Currently I MUST stash save change,
look actual line number,
trace evolution,
stash pop to bring back current change.

EXPECTED:
Allow to use those line numbers which I see in my editor without excess stash save/stash pop commands

If file has not committed change then this change maybe shown by -L as commit NOT COMMITTED YET If file staged 'commit STAGED'

More description what is comming on:
https://stackoverflow.com/q/49130112/4632019