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

Re: "git revert" feature suggestion: revert the last commit to a file

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 5, 2009, 20:50 UTC
Message-ID
<alpine.DEB.1.00.0902052145470.7491@intel-tinevez-2-302>
In-Reply-To
<20090205202104.GA11267@elte.hu>
Hi,
On Thu, 5 Feb 2009, Ingo Molnar wrote:
> But it would be so much nicer if i could do the intuitive:
> 
>    git revert kernel/softlockup.c

For some people I know, this would intuitively mean that the uncommitted changes in kernel/softlockup.c should be reverted.

So I am not convinced that this is an intuitive syntax at all.
Instead, I think that something like
	git revert :/!file=kernel/softlockup.c
would be possible, as it
- does not overload an already overloaded term, and
- is useful for something else than revert, too.

Ciao, Dscho

Previous: Ingo MolnarNext: Junio C Hamano
Message 2 of 10 in “"git revert" feature suggestion: revert the last commit to a file”
  1. Ingo MolnarFeb 5, 2009
  2. Johannes SchindelinFeb 5, 2009
  3. Junio C HamanoFeb 5, 2009
  4. Randy DunlapFeb 5, 2009
  5. Ingo MolnarFeb 5, 2009
  6. Randy DunlapFeb 5, 2009
  7. Ingo MolnarFeb 5, 2009
  8. Ingo MolnarFeb 5, 2009
  9. Junio C HamanoFeb 6, 2009
  10. Johannes SchindelinFeb 6, 2009

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.