summaryrefslogtreecommitdiff
path: root/rev-list.c
diff options
context:
space:
mode:
authorPetr Baudis <pasky@ucw.cz>2005-06-08 22:59:43 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-08 15:59:09 -0700
commit17ebe977d72290dcdc848b78ae2e65b59d4e1b4c (patch)
tree9fbebb601c1278af419e3dc38286df3acab9ea83 /rev-list.c
parentf225b21807a5f6ac589132e4d004e78038d23375 (diff)
downloadgit-17ebe977d72290dcdc848b78ae2e65b59d4e1b4c.tar.gz
[PATCH] Tidy up some rev-list-related stuff
This patch tidies up the git-rev-list documentation and epoch.c, which are in severe clash with the unwritten coding style now, and quite unreadable. It also fixes up compile failures with older compilers due to variable declarations after code. The patch mostly wraps lines before or on the 80th column, removes plenty of superfluous empty lines and changes comments from // to /* */. Signed-off-by: Petr Baudis <pasky@ucw.cz> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'rev-list.c')
-rw-r--r--rev-list.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/rev-list.c b/rev-list.c
index c27b138f3a..b526ad4e0d 100644
--- a/rev-list.c
+++ b/rev-list.c
@@ -214,17 +214,13 @@ int main(int argc, char **argv)
usage(rev_list_usage);
if (!merge_order) {
-
- if (limited)
+ if (limited)
list = limit_list(list);
show_commit_list(list);
-
} else {
-
if (sort_list_in_merge_order(list, &process_commit)) {
die("merge order sort failed\n");
}
-
}
return 0;