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

Re: [PATCH v2 1/2] mergetool: don't require a work tree for --tool-help

From: Charles Bailey <hidden>
Date: 2016-06-15 23:02:41


On 11 Oct 2014, at 09:29, David Aguilar [off-list ref] wrote:

Thanks for the heads-up.

I tested mergetool and it seems fine but indeed there's an
`if test -e "$GIT_DIR/MERGE_RR"` in there that is surely not
working as intended.

One solution would be to move the work done in the test -z "$NONGIT_OK"
block in git-sh-setup into a function e.g. git_dir_init () so
that we can defer the GIT_DIR initialization until after
require_work_tree has been called.
I believe I had a very similar idea but the vast number of things that would potentially be affected by changing git-sh-setup.sh made me put things on hold in case I had any other ideas.

I haven't so I think this is probably the best approach.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help