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:
@@ -384,6 +384,7 @@ public class ChangeEditModifier {
|
|||||||
ru.setExpectedOldObjectId(oldObjectId);
|
ru.setExpectedOldObjectId(oldObjectId);
|
||||||
ru.setNewObjectId(newEdit);
|
ru.setNewObjectId(newEdit);
|
||||||
ru.setRefLogIdent(getRefLogIdent(me));
|
ru.setRefLogIdent(getRefLogIdent(me));
|
||||||
|
ru.setRefLogMessage("inline edit (amend)", false);
|
||||||
ru.setForceUpdate(true);
|
ru.setForceUpdate(true);
|
||||||
RefUpdate.Result res = ru.update(rw);
|
RefUpdate.Result res = ru.update(rw);
|
||||||
if (res != RefUpdate.Result.NEW &&
|
if (res != RefUpdate.Result.NEW &&
|
||||||
|
Reference in New Issue
Block a user