git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git aliases and GIT_PREFIX

From
FKFederico Kircheis <federico.kircheis@gmail.com>
Date
Oct 28, 2021, 19:03 UTC
Message-ID
<2e328484-d0e3-8801-61da-07544cc93eef@gmail.com>
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.
Next: Ævar Arnfjörð Bjarmason
Message 1 of 5 in “git aliases and GIT_PREFIX”
  1. Federico KircheisOct 28, 2021
  2. Ævar Arnfjörð BjarmasonOct 29, 2021
  3. Johannes SchindelinNov 2, 2021
  4. Federico KircheisNov 2, 2021
  5. Johannes SchindelinNov 4, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.