Re: suggestion for a simple addition: git update-ref --ff-only

2013-03-01 Thread Jeff King
On Sat, Mar 02, 2013 at 12:18:59AM +0100, David Madore wrote: > I'd like to suggest a very simple, but IMHO quite useful, additional > option to git-update-ref: an option --ff-only which would cause the > command to refuse unless the current ref is an ancestor of the new > one. > > The reason I t

Re: suggestion for a simple addition: git update-ref --ff-only

2013-03-01 Thread Junio C Hamano
David Madore writes: > Hi list, > > I'd like to suggest a very simple, but IMHO quite useful, additional > option to git-update-ref: an option --ff-only which would cause the > command to refuse unless the current ref is an ancestor of the new > one. Mild NAK. What you want may be "git push . n

suggestion for a simple addition: git update-ref --ff-only

2013-03-01 Thread David Madore
Hi list, I'd like to suggest a very simple, but IMHO quite useful, additional option to git-update-ref: an option --ff-only which would cause the command to refuse unless the current ref is an ancestor of the new one. The reason I think it would be useful: I occasionally wish to perform a trivial