git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Q] Mark files for later commit?
@ 2011-03-29  6:04 Daniel Nyström
  2011-03-29  6:49 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Nyström @ 2011-03-29  6:04 UTC (permalink / raw)
  To: git

Hi folks!

I just hit into an situation where a certain file contains a human
written changelog, which is modified (not prepended) for each single
commit in the project, is being committed along with the actual patch.

This approach makes it very difficult to backport the commits, since
it will always try patching the changelog file as well.

The changelog is only supposed to be committed at new releases, but is
kept maintained continuously so stuff won't be forgotten.

So this makes me wonder, is there a way to mark certain files for
being committed later on? Which does not automatically get added to
the staging area (on "git commit -a" or "git add ." and so on) unless
it's specifically mentioned by "git add"?

We've discussed making it generated automatically, but that's not as
easy as it may sound.

How would you like a git feature like described above, marking files
for later inclusion?

Thanks!
--
Daniel

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-03-29 12:15 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29  6:04 [Q] Mark files for later commit? Daniel Nyström
2011-03-29  6:49 ` Junio C Hamano
2011-03-29  7:09   ` Michael J Gruber
2011-03-29  7:38     ` Johan Herland
2011-03-29  7:45       ` Michael J Gruber
2011-03-29  7:51   ` Junio C Hamano
2011-03-29  9:18     ` Daniel Nyström
2011-03-29 12:01       ` Michael J Gruber
2011-03-29 12:15         ` Daniel Nyström

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).