-
Notifications
You must be signed in to change notification settings - Fork 1
/
INSTALL
35 lines (23 loc) · 959 Bytes
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Dependencies
In order to use `git-heads` you need:
- [Git] 1.7.0.2 or newer
- a Bourne Shell compatible shell: tested with bash, dash, pdksh
and mksh
- standard Unix utilities: cat, grep, sed, sort, tail, uniq,
xargs
- [pandoc] for generating the man page.
# Installation
Copy the `git-heads` script to some directory in your
`$GIT_EXEC_PATH` or `$PATH` so that `git` can find it:
install -Dm755 git-heads /usr/local/bin/git-heads
The `README` file can be converted to a man page using:
pandoc -sS -f markdown -t man -o git-heads.1 README
Install it to somewhere in your `$MANPATH` or wherever your man
page implementation can find it.
install -Dm644 git-heads.1 /usr/local/man/man1/git-heads.1
# Usage
Now you can simply run `git heads`. For further notes on the
usage see the output of `git heads -h`, the `README` file or the
`git-heads(1)` manual page.
[Git]: http://git-scm.com/
[pandoc]: http://johnmacfarlane.net/pandoc/