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

Re: Ignore on commit

From
Philip Oakley <philipoakley@iee.org>
Date
Oct 5, 2012, 07:00 UTC
Message-ID
<5DB4E90436854A219805224B2C375CC9@PhilipOakley>
In-Reply-To
<CAH5451mpJw4+noUF+FkZJS+Y2oq2ThFeG7wSOCdbVaMQPNgUJA@mail.gmail.com>
From: "Andrew Ardill" <andrew.ardill@gmail.com>
Show 17 quoted lines
> On 5 October 2012 07:20, Marco Craveiro <marco.craveiro@gmail.com> 
> wrote:
>> ...
>> Similar but not quite; the idea is that you know that there is some
>> code (I'm just talking about files here, so lets ignore hunks for the
>> moment) which is normally checked in but for a period of time you 
>> want
>> it ignored. So you don't want it git ignored but at the same time you
>> don't want to see these files in the list of modified files.
>
> What is the reason git ignore is no good in this case? Is it simply
> that you can't see the ignored files in git status, or is it that
> adding and removing entries to .gitignore is too cumbersome? If it's
> the latter you could probably put together a simple shell wrapper to
> automate the task, as otherwise it seems like git ignore does what you
> need.
>

IIUC the files are already tracked, and a variant of ' git update-index --assume-unchanged' is being requested, so that the command doesn't need to be repeated if they checkuout / swap branches (which assumes I've understood the effect of such an index change correctly)

> Regards,
>
> Andrew Ardill
> --
Previous: Marco CraveiroNext: Pascal Obry
Message 11 of 12 in “Ignore on commit”
  1. Marco CraveiroOct 4, 2012
  2. Pascal ObryOct 4, 2012
  3. Marco CraveiroOct 4, 2012
  4. Andrew WongOct 4, 2012
  5. Andrew ArdillOct 5, 2012
  6. demerphqOct 5, 2012
  7. Sitaram ChamartyOct 5, 2012
  8. Junio C HamanoOct 5, 2012
  9. Andrew ArdillOct 5, 2012
  10. Marco CraveiroOct 5, 2012
  11. Philip OakleyOct 5, 2012
  12. Pascal ObryOct 5, 2012

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.