Allow RefUpdate callers to control the PersonIdent recorded
commitc8572906c25fa3959f7148da73eb8441fb984d78
authorShawn O. Pearce <spearce@spearce.org>
Wed, 4 Feb 2009 23:15:40 +0000 (4 15:15 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Wed, 4 Feb 2009 23:35:07 +0000 (5 00:35 +0100)
tree99c539eb33ecf3bb02a0a84c970ddc03bb1ca2a5
parent236267d68d8981a5b26f59249c682a9b955f6875
Allow RefUpdate callers to control the PersonIdent recorded

In server applications we may want to ensure the remote user
identity is used within the reflog, rather than whatever the
local repository might come up with.

This change introduces an optional RefLogIdent property of
the RefUpdate, settable by the caller to override any default
guessing performed within the ref log writer.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/lib/RefLogWriter.java
org.spearce.jgit/src/org/spearce/jgit/lib/RefUpdate.java