threads / patch / 40283

patchinterpret-trailers: allow running outside a repository

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

## tl;dr

2 messages between Sep 5, 2015 and Sep 7, 2015. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

John Keeping· Sep 5, 2015, 13:39 UTC · lore

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(-)
Show changes to git.c +1 −1
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
Christian Couder· Sep 7, 2015, 20:08 UTC · re: John Keeping · lore

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

On Sat, Sep 5, 2015 at 3:39 PM, John Keeping <john@keeping.me.uk> wrote:
> It may be useful to run git-interpret-trailers without needing to be in
> a repository.
Yeah, it looks like it works fine outside a repo.
Tested-by: Christian Couder <chriscool@tuxfamily.org>

Thanks, Christian.

← back to recent threads