Skip to content

Commit 1b7cac7

Browse files
committed
Add usage in readme
1 parent 889b4a2 commit 1b7cac7

File tree

1 file changed

+26
-2
lines changed

1 file changed

+26
-2
lines changed

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,32 @@ This can,
1414

1515
Install `git`.
1616

17-
Symlink `git-evtag` to `~/.local/bin/git-evtag` or somewhere else that is in
18-
`$PATH`. Then,
17+
Symlink `git-evtag` to `~/.local/bin/git-evtag` or somewhere else that
18+
is in `$PATH`. Then,
19+
20+
```
21+
# Show tree checksum of HEAD
22+
git evtag
23+
24+
# Show tree checksum of tag TAG
25+
git evtag --rev TAG
26+
27+
# Show tree checksum of commit COMMIT
28+
git evtag --rev COMMIT
29+
30+
# Verify checksum obtained from tag message of tag TAG against the
31+
# one calculated. Also verifies signature of TAG
32+
git evtag --verify TAG
33+
34+
# Add tree checksum to the tag TAG. Preserves the message of the
35+
# original tag TAG, creates a new tag TAG with the previous message and
36+
# the checksum appended to it
37+
git evtag --sign TAG
38+
39+
# Produces 'Git-EVTag-v0-SHA512' prefixed output
40+
git evtag --compat
41+
git evtag --compat --sign TAG
42+
```
1943

2044
```sh
2145
$ git evtag -h

0 commit comments

Comments
 (0)