aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2018-09-28 16:59:31 +0100
committerAdam Spiers <git@adamspiers.org>2018-09-28 16:59:31 +0100
commit514cfc62a87b32935b9432002221e37820973565 (patch)
treecbcf231dcca3563ba327cacecb4de443a7549918 /README.md
parent2e819c642aee899e53b87bc5f419783116dbb0db (diff)
parenta79c27051c65059e374b72d9c36e3ce0c0cd53f2 (diff)
downloadgit-deps-514cfc62a87b32935b9432002221e37820973565.tar.gz
Merge remote-tracking branch 'github/master'
Diffstat (limited to 'README.md')
-rw-r--r--README.md45
1 files changed, 33 insertions, 12 deletions
diff --git a/README.md b/README.md
index d0fade8..526de17 100644
--- a/README.md
+++ b/README.md
@@ -116,32 +116,53 @@ Please see [the `INSTALL.md` file](INSTALL.md).
Usage
-----
-The tool is not yet fully documented, but usage is fairly
-self-explanatory if you run `git deps -h`.
+Usage is fairly self-explanatory if you run `git deps -h`:
+
+```
+usage: git-deps [options] COMMIT-ISH [COMMIT-ISH...]
+
+Auto-detects commits on which the given commit(s) depend.
+
+optional arguments:
+ -h, --help Show this help message and exit
+ -v, --version show program's version number and exit
+ -l, --log Show commit logs for calculated dependencies
+ -j, --json Output dependencies as JSON
+ -s, --serve Run a web server for visualizing the dependency graph
+ -b IP, --bind-ip IP IP address for webserver to bind to [127.0.0.1]
+ -p PORT, --port PORT Port number for webserver [5000]
+ -r, --recurse Follow dependencies recursively
+ -e COMMITISH, --exclude-commits COMMITISH
+ Exclude commits which are ancestors of the given COMMITISH (can be repeated)
+ -c NUM, --context-lines NUM
+ Number of lines of diff context to use [1]
+ -d, --debug Show debugging
+```
Currently you should run it from the root (i.e. top directory) of the
git repository you want to examine; this is a
[known limitation](https://github.com/aspiers/git-deps/issues/27).
-By default it will output all dependencies of the given commit-ish(s),
-one per line. With `--recurse`, it will traverse dependencies of
-dependencies, and so on until it cannot find any more. In recursion
-mode, two SHA1s are output per line, indicating that the first depends
-on the second.
+By default it will output the SHA1s of all dependencies of the given
+commit-ish(s), one per line. With `--recurse`, it will traverse
+dependencies of dependencies, and so on until it cannot find any more.
+In recursion mode, two SHA1s are output per line, indicating that the
+first depends on the second.
### Web UI for visualizing and navigating the dependency graph
-If you run with the `--serve` option then it will start a lightweight
-webserver and output a URL you can connect to for dynamically
-visualizing and navigating the dependency graph.
+If you run it with the `--serve` option and no COMMIT-ISH parameters,
+then it will start a lightweight webserver and output a URL you can
+connect to for dynamically visualizing and navigating the dependency
+graph.
Optionally choose a commit-ish (the form defaults to `master`), click
the `Submit` button, and you should see a graph appear with one node
per commit. By hovering the mouse over a node you will see more
details, and a little `+` icon will appear which can be clicked to
calculate dependencies of that commit, further growing the dependency
-tree. You can zoom in and
-out with the mousewheel, and drag the background to pan around.
+tree. You can zoom in and out with the mousewheel, and drag the
+background to pan around.
If you set up a MIME handler for the `gitfile://` protocol during
setup, [as documented](INSTALL.md) you will be able to double-click on