diff options
author | Junio C Hamano <junkio@cox.net> | 2006-03-01 00:58:56 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-03-01 03:16:34 -0800 |
commit | 7ae0b0cb65f069b657155abcb6aa6780b93ce881 (patch) | |
tree | 089e8ef278433352c53950dfad58800cf5b17770 /revision.h | |
parent | fd751667a21b8fb9ece9bf7df10ac04e72be13b0 (diff) | |
download | git-7ae0b0cb65f069b657155abcb6aa6780b93ce881.tar.gz git-7ae0b0cb65f069b657155abcb6aa6780b93ce881.tar.xz |
git-log (internal): more options.
This ports the following options from rev-list based git-log
implementation:
* -<n>, -n<n>, and -n <n>. I am still wondering if we want
this natively supported by setup_revisions(), which already
takes --max-count. We may want to move them in the next
round. Also I am not sure if we can get away with not
setting revs->limited when we set max-count. The latest
rev-list.c and revision.c in this series do not, so I left
them as they are.
* --pretty and --pretty=<fmt>.
* --abbrev=<n> and --no-abbrev.
The previous commit already handles time-based limiters
(--since, --until and friends). The remaining things that
rev-list based git-log happens to do are not useful in a pure
log-viewing purposes, and not ported:
* --bisect (obviously).
* --header. I am actually in favor of doing the NUL
terminated record format, but rev-list based one always
passed --pretty, which defeated this option. Maybe next
round.
* --parents. I do not think of a reason a log viewer wants
this. The flag is primarily for feeding squashed history
via pipe to downstream tools.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'revision.h')
-rw-r--r-- | revision.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/revision.h b/revision.h index 0043c1694..31e8f6156 100644 --- a/revision.h +++ b/revision.h @@ -5,6 +5,7 @@ #define UNINTERESTING (1u<<1) #define TREECHANGE (1u<<2) #define SHOWN (1u<<3) +#define TMP_MARK (1u<<4) /* for isolated cases; clean after use */ struct rev_info { /* Starting list */ |