Add support for creating detached heads
commit5b13adcea97c19750ebfd5be226c48bb646708cf
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 28 Dec 2009 15:49:50 +0000 (28 16:49 +0100)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 28 Dec 2009 23:58:40 +0000 (28 15:58 -0800)
treeeb37915002e89a0bff7661b7451de762cd4dd97b
parent1ec393e744cd16956cd800c9a56fcae19e150241
Add support for creating detached heads

An extra flag when creating a RefUpdate object allows the
caller to destroy the symref and replace it with an object
ref, a.k.a. detached HEAD.

Change-Id: Ia88d48eab1eb4861ebfa39e3be9258c3824a19db
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
org.eclipse.jgit.test/tst/org/eclipse/jgit/lib/RefUpdateTest.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/RefDatabase.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Repository.java