diff options
author | Anthony HAMON <antham@users.noreply.github.com> | 2017-02-06 17:53:11 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2017-02-06 17:53:11 +0100 |
commit | d0cf20797464ab12b41ccb5c603f67884a6e8e17 (patch) | |
tree | 4faacd3a2f7c816c36adde83bfb22576a01e2fe8 /plumbing | |
parent | 41e5a1ff6f16ec13fa1cebe6e1d872bfe0951cee (diff) | |
download | go-git-d0cf20797464ab12b41ccb5c603f67884a6e8e17.tar.gz |
Add revision implementation (#139)
Diffstat (limited to 'plumbing')
-rw-r--r-- | plumbing/revision.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plumbing/revision.go b/plumbing/revision.go new file mode 100644 index 0000000..5f053b2 --- /dev/null +++ b/plumbing/revision.go @@ -0,0 +1,11 @@ +package plumbing + +// Revision represents a git revision +// to get more details about git revisions +// please check git manual page : +// https://www.kernel.org/pub/software/scm/git/docs/gitrevisions.html +type Revision string + +func (r Revision) String() string { + return string(r) +} |