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

Re: [ANNOUNCE] GIT 0.99.9g

From
Junio C Hamano <junkio@cox.net>
Date
Nov 11, 2005, 18:37 UTC
Message-ID
<7v64qzni9c.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<43730E39.6030601@pobox.com>
Jeff Garzik <jgarzik@pobox.com> writes:
> Junio C Hamano wrote:
>>  - One important newcomer is git-pack-redundant...
>
> IMHO git-prune-packed should prune redundant pack files...

Maybe not in git-prune-packed, but you are right. We should at least do that in git-prune. Maybe with something like the patch at the end?

Show 5 quoted lines
>> Oh, and we will not be moving things out of /usr/bin/ during 1.0
>> timeframe.
>
> :(  bummer.  I do like the elegance of having /usr/bin/git executing 
> stuff out of /usr/libexec/git.

Bummer here as well. This is not my first preference, but more or less "all things considered...". I can go over cogito and stgit with Pasky and Catalin and coordinate the transition, but at the same time, everybody's existing scripts need to be adjusted. As Linus said, we broke kernel.org snapshot scripts number of times.

Also places we execute git-upload-pack and git-receive-pack over an SSH connection need to be updated to execute 'git' with the first parameter 'upload-pack' and 'receive-pack' to make sure it would keep working with older or newer git on the other end.

After all that happens, we can start installing things in /usr/lib/git/. During the transition, the C rewrite of git wrapper posted by Andreas Ericsson might help, so I am planning to merge it before 1.0, after deciding what the right word for the "path to the rest of git executables" should be.

So let's say 1.0 will ship with all things in /usr/bin/, with updated docs that explain the situation: (1) the dash form 'git-frotz' is being deprecated, and you are encouraged to spell it as 'git frotz'; (2) if you want to use the dash form in your scripts for performance reasons, you need to have something like PATH="$(git --exec-path):$PATH" at the beginning of your script.

And after some time (say 2 months) we can switch.
I just do not want to wait that long before 1.0.

-- >8 -- cut here -- >8 -- [PATCH] git-prune: prune redundant packs.

---
diff --git a/git-prune.sh b/git-prune.sh
index ef31bd2..aa79807 100755
--- a/git-prune.sh
+++ b/git-prune.sh
@@ -27,3 +27,14 @@ sed -ne '/unreachable /{
 }
 
 git-prune-packed $dryrun
+
+redundant=$(git-pack-redundant --all)
+if test "" != "$redundant"
+then
+	if test "" = $dryrun
+	then
+		echo "$redundant" | xargs rm -f
+	else
+		echo rm -f "$redundant"
+	fi
+fi
Previous: Andreas EricssonNext: Andreas Ericsson
Message 7 of 29 in “[ANNOUNCE] GIT 0.99.9g”
  1. Junio C HamanoNov 10, 2005
  2. Jeff GarzikNov 10, 2005
  3. H. Peter AnvinNov 10, 2005
  4. Andreas EricssonNov 10, 2005
  5. H. Peter AnvinNov 11, 2005
  6. Andreas EricssonNov 12, 2005
  7. Junio C HamanoNov 11, 2005
  8. Andreas EricssonNov 12, 2005
  9. Junio C HamanoNov 14, 2005
  10. Andreas EricssonNov 14, 2005
  11. Junio C HamanoNov 14, 2005
  12. Petr BaudisNov 14, 2005
  13. Yaacov Akiba SlamaNov 10, 2005
  14. Junio C HamanoNov 10, 2005
  15. H. Peter AnvinNov 10, 2005
  16. Junio C HamanoNov 10, 2005
  17. Petr BaudisNov 10, 2005
  18. Daniel BarkalowNov 10, 2005
  19. Junio C HamanoNov 10, 2005
  20. Daniel BarkalowNov 10, 2005
  21. Linus TorvaldsNov 10, 2005
  22. Linus TorvaldsNov 10, 2005
  23. H. Peter AnvinNov 11, 2005
  24. Johannes SchindelinNov 11, 2005
  25. H. Peter AnvinNov 11, 2005
  26. Jim RadfordNov 10, 2005
  27. Andreas EricssonNov 10, 2005
  28. Junio C HamanoNov 10, 2005
  29. Jim RadfordNov 11, 2005

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.