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

Re: [Q] Mark files for later commit?

From
DNDaniel Nyström <daniel.nystrom@timeterminal.se>
Date
Mar 29, 2011, 09:18 UTC
Message-ID
<AANLkTik33jiKipcv8d8tY_FXa2nE0BtBdi9vro0gkdQc@mail.gmail.com>
In-Reply-To
<7v8vvytldk.fsf@alter.siamese.dyndns.org>
Den 29 mars 2011 09:51 skrev Junio C Hamano <gitster@pobox.com>:
Show 11 quoted lines
>> Daniel Nyström <daniel.nystrom@timeterminal.se> writes:
>>> How would you like a git feature like described above, marking files
>>> for later inclusion?
>>
>> That does not sound like a feature but merely a source of confusion.
>
> If that is the case, then probably you shouldn't be even updating the
> "changelog" file constantly to begin with.  Instead, how about creating a
> separate "changelog+" file that is not tracked, and keep its contents
> maintained continuously so stuff won't be forgotten?  When the time to
> release comes, you can "mv changelog changelog", and commit it.

If we ignore this particular case, how would a "git hold <file>..." feature do? -- $ git status # On branch master # Changed but not updated: # (use "git add <file>..." to update what will be committed) # (use "git checkout -- <file>..." to discard changes in working directory) # # modified: package/qt/qt.mk # # Changed but on hold: # (use "git add --holds <file>..." to update what will be committed) # # modified: CHANGES # no changes added to commit (use "git add" and/or "git commit -a") -- Would there be other use-cases?

Previous: Junio C HamanoNext: Michael J Gruber
Message 7 of 9 in “[Q] Mark files for later commit?”
  1. Daniel NyströmMar 29, 2011
  2. Junio C HamanoMar 29, 2011
  3. Michael J GruberMar 29, 2011
  4. Johan HerlandMar 29, 2011
  5. Michael J GruberMar 29, 2011
  6. Junio C HamanoMar 29, 2011
  7. Daniel NyströmMar 29, 2011
  8. Michael J GruberMar 29, 2011
  9. Daniel NyströmMar 29, 2011

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.