]> khamidou — GitHub mirrors - arcanist.git/commit
Use --allow-empty when git amending to HEAD
authorChris Piro <cpiro@airtime.com>
Tue, 20 Dec 2011 00:12:13 +0000 (16:12 -0800)
committerChris Piro <cpiro@airtime.com>
Tue, 20 Dec 2011 21:21:58 +0000 (13:21 -0800)
commit52d14ef8e6ee6ba48a1d65509e6c107384e5dcec
treee4608b0c47c5ce4b6d1995a68712e5368ead8a13
parent72ee0ced4f0cfd343d40f1d17f7dc170a6e0ce4c
Use --allow-empty when git amending to HEAD

Summary: ... in case the head commit is empty. Empty commits are useful for
injecting an Arcanist commit message in a branch then sending the whole thing
off for review. As far as I know there is no situation in which an empty commit
would exist unintentionally and using ##--allow-empty## would suppress an error.

Test Plan: works fine for a branch I just sent for review

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley
Differential Revision: 1241
src/repository/api/git/ArcanistGitAPI.php