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

use GIT_DIR instead of /var/tmp

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 5, 2006, 11:52 UTC
Message-ID
<81b0412b0601050352n386505bfjd40e515809e3c862@mail.gmail.com>

Not every system (will not one microsoft windows system) have /var/tmp, whereas using GIT_DIR for random temporary files is more or less established.

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Subject: [PATCH] use GIT_DIR instead of /var/tmp
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 git-reset.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
9ba3fa786e3de644a9395f99e69cede912f64571
diff --git a/git-reset.sh b/git-reset.sh
index eb44ee8..6c9e58a 100755
--- a/git-reset.sh
+++ b/git-reset.sh
@@ -3,7 +3,7 @@
 USAGE='[--mixed | --soft | --hard]  [<commit-ish>]'
 . git-sh-setup
 
-tmp=/var/tmp/reset.$$
+tmp=${GIT_DIR}/reset.$$
 trap 'rm -f $tmp-*' 0 1 2 3 15
 
 reset_type=--mixed
-- 
1.0.GIT
Next: H. Peter Anvin
Message 1 of 8 in “use GIT_DIR instead of /var/tmp”
  1. Alex RiesenJan 5, 2006
  2. H. Peter AnvinJan 5, 2006
  3. Alex RiesenJan 5, 2006
  4. H. Peter AnvinJan 5, 2006
  5. Linus TorvaldsJan 5, 2006
  6. Jon NelsonJan 5, 2006
  7. Alex RiesenJan 6, 2006
  8. Johannes SchindelinJan 6, 2006

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.