Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: [PATCH] allow setting GIT_WORK_TREE to "no work tree"

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:11

Junio C Hamano [off-list ref] writes:
quoted
The other option is setting

  GIT_MAGICALLY_SET_GIT_DIR_SO_DONT_ACT_LIKE_THE_USER_DID=1

but I was hoping to avoid that.
Yuck.  Let's then try your original (slightly redundant) one.
Oops, scratch that.  I was confused.

I do not like the magic GIT_WORK_TREE=: which is simply
illogical.  GIT_EDITOR=: made perfect sense (":" is actually a
command that succeeds without doing anything), but ":" does not
have anything to do with "there is no such path".

I was tempted to suggest GIT_WORK_TREE=/dev/null because that is
what "diff" uses to mark "this does not even exist", but that
feels dirty.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help