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

[PATCH] interpret-trailers: allow running outside a repository

From
John Keeping <john@keeping.me.uk>
Date
Sep 5, 2015, 13:39 UTC
Message-ID
<d8a4735a50d84010b81fd6a07a7c7403074fbb74.1441460208.git.john@keeping.me.uk>

It may be useful to run git-interpret-trailers without needing to be in a repository.

Signed-off-by: John Keeping <john@keeping.me.uk>
---
 git.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git.c b/git.c
index 82d7a1c..2431cb0 100644
--- a/git.c
+++ b/git.c
@@ -417,7 +417,7 @@ static struct cmd_struct commands[] = {
 	{ "index-pack", cmd_index_pack, RUN_SETUP_GENTLY },
 	{ "init", cmd_init_db, NO_SETUP },
 	{ "init-db", cmd_init_db, NO_SETUP },
-	{ "interpret-trailers", cmd_interpret_trailers, RUN_SETUP },
+	{ "interpret-trailers", cmd_interpret_trailers, RUN_SETUP_GENTLY },
 	{ "log", cmd_log, RUN_SETUP },
 	{ "ls-files", cmd_ls_files, RUN_SETUP },
 	{ "ls-remote", cmd_ls_remote, RUN_SETUP_GENTLY },
-- 
2.5.0.466.g9af26fa
Next: Christian Couder
Message 1 of 2 in “interpret-trailers: allow running outside a repository”
  1. interpret-trailers: allow running outside a repositoryJohn Keeping, Sep 5, 2015
  2. Christian CouderSep 7, 2015

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.