git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git aliases and GIT_PREFIX
@ 2021-10-28 19:03 Federico Kircheis
  2021-10-29 10:59 ` Ævar Arnfjörð Bjarmason
  2021-11-02 14:26 ` Johannes Schindelin
  0 siblings, 2 replies; 5+ messages in thread
From: Federico Kircheis @ 2021-10-28 19:03 UTC (permalink / raw)
  To: git


Hello to everyone,

today I reported what I believed to be a bug on

  https://github.com/git-for-windows/git/issues/3496

and learned about GIT_DIR when working with aliases and git worktree.



It's annoying that GIT_DIR it is defined only if (as far as I've 
understood) working from a worktrees or submodule, as it does not seem 
to be related to those type of repositories.

This is also irritating because apparently working aliases breaks when 
being executed from those repositories.


I believe it would be better if GIT_DIR it's either always set or never 
(could someone enlighten me why the variable is needed in first place?).

If it is consistently set, it would make it much easier to notice that 
an alias is actually broken.



Best

Federico


PS: I'm not subscribed to the mailing list (yet), so please keep me in CC.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-11-04  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-28 19:03 git aliases and GIT_PREFIX Federico Kircheis
2021-10-29 10:59 ` Ævar Arnfjörð Bjarmason
2021-11-02 14:26 ` Johannes Schindelin
2021-11-02 17:26   ` Federico Kircheis
2021-11-04  0:02     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).