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

[PATCH 3/3] generate-cmdlist: avoid non-deterministic output

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 21, 2017, 23:38 UTC
Message-ID
<20171121233813.GP3429@aiede.mtv.corp.google.com>
In-Reply-To
<20171121232935.GM3429@aiede.mtv.corp.google.com>
Date: Fri, 1 Jul 2016 17:32:00 -0700

Non-determinism makes it harder for build tools to discover when a target needs to be rebuilt.

generate-cmdlist.sh stores the full path in a comment:
 /* Automatically generated by /build/git-agojiD/git-2.15.0/generate-cmdlist.sh */
Use the file name alone instead.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
That's the end of the series.  Thanks for reading.
 generate-cmdlist.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index ab0d1b0c06..eeea4b67ea 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-echo "/* Automatically generated by $0 */
+echo "/* Automatically generated by generate-cmdlist.sh */
 struct cmdname_help {
 	char name[16];
 	char help[80];
-- 
2.15.0.448.gf294e3d99a
Previous: Jonathan Nieder
Message 10 of 10 in “Improving build reproducibility”
  1. 0/3 Improving build reproducibilityJonathan Nieder, Nov 21, 2017
  2. 1/3 Documentation: allow overriding timestamps of generated asciidocJonathan Nieder, Nov 21, 2017
  3. brian m. carlsonNov 22, 2017
  4. Jonathan NiederNov 22, 2017
  5. Junio C HamanoNov 22, 2017
  6. Anders KaseorgNov 22, 2017
  7. Junio C HamanoNov 22, 2017
  8. Jonathan NiederNov 22, 2017
  9. 2/3 git-gui: sort entries in optimized tclIndexJonathan Nieder, Nov 21, 2017
  10. 3/3 generate-cmdlist: avoid non-deterministic outputJonathan Nieder, Nov 21, 2017

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.