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

Re: [PATCH] git-repack: create new packs inside $PACKDIR, not cwd

From
Junio C Hamano <junkio@cox.net>
Date
Sep 4, 2006, 10:13 UTC
Message-ID
<7vlkp0ndmj.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<44FBF9E0.9050800@catalyst.net.nz>
"Martin Langhoff (CatalystIT)" <martin@catalyst.net.nz> writes:
> BTW, I think there's a small error.
>
> Your packtmp includes $$ which means that rm -f "$PACKTMP" will only
> clear out old packs..

That was deliberate. I hate programs that clean things up behind user's back. The first "rm" is to get rid of what would collide with what we are going to do (i.e. protecting ourselves) and "trap rm" is to make sure we do not leave the cruft we know we are going to create. I'd rather leave other people's cruft around, unless the purpose of the command is to clean things up, and repack is hardly that.

-- 
VGER BF report: H 0.149712
Previous: Martin Langhoff (CatalystIT)Next: Martin Langhoff (CatalystIT)
Message 6 of 8 in “git-repack: create new packs inside $PACKDIR, not cwd”
  1. git-repack: create new packs inside $PACKDIR, not cwdMartin Langhoff, Sep 4, 2006
  2. Martin WaitzSep 4, 2006
  3. Junio C HamanoSep 4, 2006
  4. Junio C HamanoSep 4, 2006
  5. Martin Langhoff (CatalystIT)Sep 4, 2006
  6. Junio C HamanoSep 4, 2006
  7. Martin Langhoff (CatalystIT)Sep 4, 2006
  8. Junio C HamanoSep 4, 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.