Git development
 help / color / mirror / Atom feed
* [TRIVIAL PATCH 1/1] Make git-annotate use RUN_SETUP
@ 2007-05-21  3:11 Andrew Ruder
  0 siblings, 0 replies; only message in thread
From: Andrew Ruder @ 2007-05-21  3:11 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git

The USE_PAGER was unnecessary as git-blame/git-annotate specifically
setup the pager when --incremental is not specified.

Prior to this patch git annotate somefileinasubdirectory.c would fail
(while git blame somefileinasubdirectory.c would succeed).

Signed-off-by: Andrew Ruder <andy@aeruder.net>
---
 git.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git.c b/git.c
index f200907..eeb2c0c 100644
--- a/git.c
+++ b/git.c
@@ -225,7 +225,7 @@ static void handle_internal_command(int argc, const char **argv, char **envp)
 		int option;
 	} commands[] = {
 		{ "add", cmd_add, RUN_SETUP | NOT_BARE },
-		{ "annotate", cmd_annotate, USE_PAGER },
+		{ "annotate", cmd_annotate, RUN_SETUP },
 		{ "apply", cmd_apply },
 		{ "archive", cmd_archive },
 		{ "blame", cmd_blame, RUN_SETUP },
-- 
1.5.2.14.g45bde-dirty

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-21  3:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-21  3:11 [TRIVIAL PATCH 1/1] Make git-annotate use RUN_SETUP Andrew Ruder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox