summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a11b38)
raw | patch | inline | side by side (parent: 3a11b38)
author | Jonas Fonseca <fonseca@diku.dk> | |
Wed, 17 May 2006 10:31:41 +0000 (12:31 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Wed, 17 May 2006 10:31:41 +0000 (12:31 +0200) |
README | patch | blob | history | |
tig.c | patch | blob | history |
index 128027e56a6a6537d8aadeeaac74d24836dc398c..2387c7be731df336895b1eefd27ea5ed54cf6968 100644 (file)
--- a/README
+++ b/README
of various git commands.
When browsing repositories, it uses the underlying git commands to present the
-user with various views, such as summarized commit log and showing the commit
+user with various views, such as summarized revision log and showing the commit
with the log message, diffstat, and the diff.
Using it as a pager, it will display input from stdin and try to colorize it.
index 52dac312e2840942ea6b1a7c87fb686ea2c64ace..d4c98693b4aed409161abb57f213fad8bc6e8c4a 100644 (file)
--- a/tig.c
+++ b/tig.c
**/
#define TIG_LS_REMOTE \
- "git ls-remote ."
+ "git ls-remote . 2>/dev/null"
/**
* [[view-commands]]
/* ... silently ignore that the following are also exported. */
#define TIG_HELP_CMD \
- "man tig 2> /dev/null"
+ "man tig 2>/dev/null"
#define TIG_PAGER_CMD \
""
pclose(pipe);
+ if (refs_size == 0)
+ die("Not a git repository");
+
return OK;
}
* have a file named 'master' it will clash with the reference named
* 'master', and thus you will have to use:
*
- * $ tag log -- master
+ * $ tig log -- master
*
* NOTE: For the main view, avoiding ambiguity will in some cases require
* you to specify two "\--" options. The first will make tig(1) stop
* If you are only interested in changed that happened between two dates
* you can use:
*
- * $ tig -- --after=may.5th --before=2006-05-16.15:44
+ * $ tig -- --after=May.5th --before=2006-05-16.15:44
*
* NOTE: The dot (".") is used as a separator instead of a space to avoid
- * having to quote the option value.
+ * having to quote the option value. If you prefer use `--after="May 5th"`
+ * instead of `--after="May 5th"`.
*
* Limiting by commit ranges
* ~~~~~~~~~~~~~~~~~~~~~~~~~