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

[PATCH 2/2] Setup working tree in describe

From
Sebastian Staudt <koraktor@gmail.com>
Date
Jan 26, 2019, 10:40 UTC
Message-ID
<CA+xP2Sax+thitfKv4hTtKTYPhfVXJxD_qoJxgkCyZFTzskP-Tw@mail.gmail.com>
This ensures the given working tree is used for --dirty and --broken.
Signed-off-by: Sebastian Staudt <koraktor@gmail.com>
---
 builtin/describe.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/builtin/describe.c b/builtin/describe.c
index cc118448ee..ba1a0b199b 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -601,6 +601,8 @@ int cmd_describe(int argc, const char **argv,
const char *prefix)
     if (!hashmap_get_size(&names) && !always)
         die(_("No names found, cannot describe anything."));

+    setup_work_tree();
+
     if (argc == 0) {
         if (broken) {
             struct child_process cp = CHILD_PROCESS_INIT;
-- 
2.20.1
Next: Duy Nguyen
Message 1 of 4 in “Setup working tree in describe”
  1. 2/2 Setup working tree in describeSebastian Staudt, Jan 26, 2019
  2. Duy NguyenJan 26, 2019
  3. Sebastian StaudtJan 26, 2019
  4. Jeff KingJan 26, 2019

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.