Record "inline edit (amend)" as the reflog message for edits

Edits are being modified over time. Its may be useful to have
the reflog history reflecting prior states. Include a useful
log message text denoting these are all inline edits amending
the commit.

Change-Id: I08742b250354e6f03918418a1bbef641e7c95e80
This commit is contained in:
Shawn Pearce
2014-12-19 11:56:47 -08:00
parent e7be120177
commit a1f795a12d

View File

@@ -384,6 +384,7 @@ public class ChangeEditModifier {
ru.setExpectedOldObjectId(oldObjectId);
ru.setNewObjectId(newEdit);
ru.setRefLogIdent(getRefLogIdent(me));
ru.setRefLogMessage("inline edit (amend)", false);
ru.setForceUpdate(true);
RefUpdate.Result res = ru.update(rw);
if (res != RefUpdate.Result.NEW &&