Remember how a Ref was read in from disk and created
commit1f9db6a4fa73f476cf4efc8c0f26b6acc1ac6e2b
authorShawn O. Pearce <spearce@spearce.org>
Sun, 29 Jun 2008 07:59:19 +0000 (29 03:59 -0400)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 30 Jun 2008 22:46:22 +0000 (1 00:46 +0200)
tree79c57fac2dcccdc8a94cd6a5a788e9a1fb8c40d5
parent9ccfde23263145cdf49f094e00530e2350407437
Remember how a Ref was read in from disk and created

To efficiently deleted or update a ref we need to know where
it came from when it was read into the process.  If the ref
is being updated we can usually just write the loose file,
but if it is being deleted we may need to remove not just a
loose file but also delete it from the packed-refs.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit.test/tst/org/spearce/jgit/transport/PushProcessTest.java
org.spearce.jgit.test/tst/org/spearce/jgit/transport/RefSpecTestCase.java
org.spearce.jgit/src/org/spearce/jgit/lib/Ref.java
org.spearce.jgit/src/org/spearce/jgit/lib/RefDatabase.java
org.spearce.jgit/src/org/spearce/jgit/transport/BasePackConnection.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportBundle.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportHttp.java
org.spearce.jgit/src/org/spearce/jgit/transport/TransportSftp.java