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

Ignore on commit

From
Marco Craveiro <marco.craveiro@gmail.com>
Date
Oct 4, 2012, 16:45 UTC
Message-ID
<CAKRNd4w4Z-LS9O5ffkbTSZ0Guv4KCmWR=AtW3EpxQ2sSgazG=Q@mail.gmail.com>
Hello gitters,

One of the very (very) few features I miss in svn is "ignore on commit" (or, more generally, changelists). I'm not sure if this has been discussed in the past - google failed me a bit due to spurious matches - but I personally find it quite useful. The feature is described here [1] (and graphically, here [2]).

The gist of it is, one can mark certain files as "ignore on commit" and they get placed on a "special list" which shows up on status. These lists are effectively a sub-division of modified (but not staged). Up till now I have found the staging area to be quite sufficient, but recently I hit a use case where I was modifying a large number of files; some modifications were hacks required to get the build to work but were not meant to ever get checked in, most other files had real work. In cases like this its really useful to mark the hacked files as "ignore on commit", so that a) we don't lose track of them (as one would with git ignore, or with [4]) but b) we won't check them in by mistake.

I found some tips on how to survive without change lists ([3], [4]) but they are a bit more cumbersome. Has this feature been discussed?

Thanks a lot for an amazing piece of software, and thanks for your time.
Cheers
Marco
-- 
So young, and already so unknown -- Pauli

blog: http://mcraveiro.blogspot.com

[1] http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.changelist.html
[2] http://blog.baljeetsingh.net/2009/02/tips-tricks-svn-ignore-on-commit.html
[3] http://stackoverflow.com/questions/10606809/git-equivalence-of-svn-changelist
[4] http://gitready.com/intermediate/2009/02/18/temporarily-ignoring-files.html
Next: Pascal Obry
Message 1 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.