]> source.dussan.org Git - jgit.git/commit
Ref: Add constant for undefined update index 56/139656/3
authorIvan Frade <ifrade@google.com>
Wed, 27 Mar 2019 22:21:50 +0000 (15:21 -0700)
committerMatthias Sohn <matthias.sohn@sap.com>
Fri, 29 Mar 2019 21:50:26 +0000 (22:50 +0100)
commitcab35b28650c73f4ecb8ce5c054bf72628b22034
tree01788324b0aebb44a2a26add133bb791a1c3c7c1
parentbbff3ff008a309210ad93647efb1401c5f43e07d
Ref: Add constant for undefined update index

Code that creates references and wants to support ref dbs with and
without update indexes needs to set this value. This leds to a
proliferation of "-1" in the code base.

Make the "undefined" value a constant in the ref interface.

Change-Id: I2622a37536a84b4a4036dd55792e185486fa0628
Signed-off-by: Ivan Frade <ifrade@google.com>
org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectIdRef.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/Ref.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/SymbolicRef.java