Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

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

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:46:06

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help