Re: suggestion for a simple addition: git update-ref --ff-only
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 1, 2013, 23:33 UTC
- Message-ID
- <7vehfyelvg.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20130301231859.GA334@achernar.madore.org>
David Madore <david+news@madore.org> writes:
Show 6 quoted lines
> 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 . new_commit:refs/heads/foo", by the way.
The "update-ref" plumbing does not want any such frill.