public interface Hash
Represents a unique reference to a VCS commit.
It is called "Hash", because in DVCSs it is represented by a SHA-hash value.
TODO move to intellij.platform.vcs
Modifier and Type | Method and Description |
---|---|
java.lang.String |
asString()
Returns the String representation of this hash.
|
java.lang.String |
toShortString()
Returns a short part of the
hash string ,
which may be non-unique, but usually enough to be a commit reference, and it is easier to read than the complete hash string. |
java.lang.String asString()
java.lang.String toShortString()
Returns a short part of the hash string
,
which may be non-unique, but usually enough to be a commit reference, and it is easier to read than the complete hash string.
Usually (e.g. it is default for Git) the short hash is 7 symbols long.