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

Re: Configurable filename for what is now .gitignore

From
BSBostjan Skufca <bostjan@a2o.si>
Date
Sep 1, 2014, 20:30 UTC
Message-ID
<CAEp_DRBM6cexcoBrYmEktZXh4WMzE-tYwCi80-THCNwJqthQ=g@mail.gmail.com>
In-Reply-To
<CAEp_DRATLprK9LZg45dn5LY=3C8cLM1BNg4rmi0XxJmdPhDGBw@mail.gmail.com>
I see another crux of the problem.

There is currently no way to transfer/share repository configuration between clones. (Or is there? Could this be done with attributes? Probably not...)

This is a bit awkward. Are there any plans to provide such functionality? Pros/cons?

(It should be limited in scope of course, to provide adequate security for all parties involved.)

Thanks for sharing your opinion, b.

PS: For those that did not follow this small thread, here is an
example use case to illustrate the problem:
1. I patch git to support custom filename for .gitignore
2. I reconfigure it in my repository clone (i.e. change it to look for
.gitexclude files)
2a. This is configured in .git/config, for example as
core.excludesDefaultFilename
3. I can commit changes to repository code, namely a change which
renames .gitignore(s) to .gitexclude(s) (which restores correct
exclusion pattern parsing)
4. When I push, only .gitignore rename to .gitexclude goes upstream.
Info about required usage of .gitexclude instead of .gitignore stays
in my repo clone.
5. When someone pulls, they have messed up "git status" output until
they manually set the same setting in their repo clone (using
.gitexclude instead of .gitignore)
On 31 August 2014 03:55, Bostjan Skufca <bostjan@a2o.si> wrote:
Show 34 quoted lines
> Hi Jonathan,
>
> nope, haven't seen zit before, it does partly what I would need, but
> just for one file at a time (a "bit" awkward) and not really portable
> (git clone will not clone .FILE.git/exclude, for example).
>
> Anyway, do you think that a patch which makes .gitignore filename
> configurable would be appropriate for inclusion in future git
> releases?
>
> b.
>
>
>
> On 30 August 2014 07:43, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> Hi,
>>
>> Bostjan Skufca wrote:
>>
>>> Git is great for tracking code development, but when deploying
>>> mentioned code by using git itself, various configuration files must
>>> be created additionally, which are normally .gitignored, for various
>>> reasons (code portability, sensitive data, etc). There is currently no
>>> simple way of tracking changes to those critical configuration files
>>> (at least none that I am aware of).
>>>
>>> One way to approach this would be tracking those changes in separate
>>> git repository.
>>
>> Have you seen zit
>> <https://git.wiki.kernel.org/index.php/Interfaces,_frontends,_and_tools#Zit>?
>>
>> Curious,
>> Jonathan
Previous: Bostjan SkufcaNext: Duy Nguyen
Message 4 of 6 in “Configurable filename for what is now .gitignore”
  1. Bostjan SkufcaAug 30, 2014
  2. Jonathan NiederAug 30, 2014
  3. Bostjan SkufcaAug 31, 2014
  4. Bostjan SkufcaSep 1, 2014
  5. Duy NguyenSep 1, 2014
  6. Bostjan SkufcaSep 4, 2014

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.