Re: [PATCH v2] git-difftool-helper.sh: learn a new way go back to last save point
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 8, 2021, 23:34 UTC
- Message-ID
- <xmqq4kim3zhq.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CAJDDKr4AyxuS-MQ+62XGnK4UvJ+cFDdnMwOK1GSn-oiFrWoxyw@mail.gmail.com>
David Aguilar <davvid@gmail.com> writes:
Show 7 quoted lines
> What if instead of global state, maybe the user could specify a path > that difftool could skip forward to? For example, we could teach > difftool to resume by telling it where we last left off: > > git difftool --resume-from=foo/bar099.txt > > Then we don't need the global counter state file?
Does it have to be the second and subsequent invocation to pass the new "resume-from" option? As we do not have "global" state, I would presume that we do not even know if it is the first invocation, so perhaps a better name would be "--start-from=$pathname"?
Show 11 quoted lines
> Finally, I'm going to plug what I believe to be the right tool for the > job here. Have you tried git cola?[1] Difftool is tightly > integrated, and the UI is such that you can trivially choose any of > the modified/staged files and difftool them by using the Ctrl-d > hotkey. > > https://github.com/git-cola/git-cola/ > > Cola is purpose-built for driving difftool, and for interactive > staging, so not mentioning it in the context of wanting a better UI > for difftool would be a disservice to difftool users.
;-)