git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[TRIVIAL PATCH 1/1] Make git-annotate use RUN_SETUP

From
Andrew Ruder <andy@aeruder.net>
Date
May 21, 2007, 03:11 UTC
Message-ID
<56fecbfb5ee82e2f8fdccca6b3f275c43e2b03cd.1179716754.git.andy@aeruder.net>

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
Message 1 of 1 in “Make git-annotate use RUN_SETUP”
  1. 1/1 Make git-annotate use RUN_SETUPAndrew Ruder, May 21, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.