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

Re: Is it possible to use new conditional includes outside of git dir?

From
MSMihails Strasuns <mihails.strasuns@gmail.com>
Date
May 18, 2017, 11:50 UTC
Message-ID
<4a8c79b3-91e4-6f6c-23c3-74df023ffdf0@gmail.com>
In-Reply-To
<CACBZZX5z_jn3KnpgOBE=qa1cUcUAABPwuzqG81Ry0ztvMm4nAw@mail.gmail.com>
On 05/15/2017 11:00 PM, Ævar Arnfjörð Bjarmason wrote:
Show 7 quoted lines
> It's intentional, but in the "that's how this works" sense, not "we'll
> never add what you just asked for".
> 
> This came up on list last week:
> https://public-inbox.org/git/F55DC360-9C1E-45B9-B8BA-39E1001BD620@gmail.com/T/#u
> 
> So I'd like to ask you the same question I asked Raphael in that thread.

This came from the GitHub CLI tool I use (https://github.com/sociomantic-tsunami/git-hub) which stores own configuration in git config (i.e. `git config hub.oauthtoken`). Some of its command run outside of the repository context, for example `git hub clone` ensures creation of a personal fork before doing regular clone and thus needs access to the token.

Thus I hoped that I will be able to use new git functionality to distinguish between work and personal GitHub accounts same as it is done for name/email.

Previous: Ævar Arnfjörð Bjarmason
Message 3 of 3 in “Is it possible to use new conditional includes outside of git dir?”
  1. Mihails StrasunsMay 15, 2017
  2. Ævar Arnfjörð BjarmasonMay 15, 2017
  3. Mihails StrasunsMay 18, 2017

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.