stagit

improve stagit.1 documentation, reword and explain caching behaviour

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 2b9efed parent: 87aee19
1 files changed, 17 insertions(+), 8 deletions(-)
Mstagit.1+17-8
M · stagit.1 +17, -8
 1@@ -22,8 +22,7 @@ the last commit. The
 2 will store the last commit id and the entries in the HTML table. It is up
 3 to the user to make sure the state of the
 4 .Ar cachefile
 5-is in sync with the history of the repository, for example a
 6-git push \-\-force can screw this up.
 7+is in sync with the history of the repository.
 8 .Pp
 9 The following files will be written:
10 .Bl -tag -width Ds
11@@ -38,20 +37,30 @@ each commit links to a page with a diff and diffstat of the commit.
12 Lists references of the repository such as branches and tags.
13 .El
14 .Pp
15-For each file in HEAD a file will be written in the format:
16+For each entry in HEAD a file will be written in the format:
17 file/filepath.html. This file will contain the textual data of the file
18-prefixed by line numbers. The file will have the string "binary file"
19+prefixed by line numbers. The file will have the string "Binary file"
20 if the data is considered to be non-textual.
21 .Pp
22 For each commit a file will be written in the format:
23-commit/commitid.html . This file will contain the diff and diffstat of the
24-commit. It will write the string "binary files differ" if the data is
25-considered to be non-textual.
26+commit/commitid.html. This file will contain the diff and diffstat of the
27+commit. It will write the string "Binary files differ" if the data is
28+considered to be non-textual. Too large diffs will be suppressed and a string
29+"Diff is too large, output suppressed" will be written.
30+.Pp
31+When a commit HTML file exists it won't be overwritten again, note that if
32+you've changed
33+.Nm
34+or changed one of the metadata files of the repository it is recommended to
35+recreate all the output files because it will contain old data. To do this
36+remove the output directory and
37+.Ar cachefile ,
38+then recreate the files.
39 .Pp
40 The basename of the directory is used as the name. The suffix ".git" is
41 removed from the basename, this is commonly used for "bare" repos.
42 .Pp
43-The content of the follow files specifies the meta data for each repository:
44+The content of the follow files specifies the metadata for each repository:
45 .Bl -tag -width Ds
46 .It .git/description or description (bare repo).
47 description