https://github.com/git/git
Revision c9ed27b9e8372822219780705128cf37bd25e26b authored by Junio C Hamano on 19 October 2005, 09:31:27 UTC, committed by Junio C Hamano on 19 October 2005, 09:31:27 UTC
Yes I said 0.99.8e was the last maintenance release for 0.99.8, but it
turns out that there was another backport necessary after git-daemon
was unleashed on kernel.org servers.

Contains the following since 0.99.8e:

H. Peter Anvin:
      revised^2: git-daemon extra paranoia, and path DWIM

Johannes Schindelin:
      Fix cvsimport warning when called without --no-cvs-direct

Junio C Hamano:
      Do not ask for objects known to be complete.

Linus Torvalds:
      git-fetch-pack: avoid unnecessary zero packing
      Optimize common case of git-rev-list

Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 750a09a
Raw File
Tip revision: c9ed27b9e8372822219780705128cf37bd25e26b authored by Junio C Hamano on 19 October 2005, 09:31:27 UTC
GIT 0.99.8f
Tip revision: c9ed27b
git-prune.sh
#!/bin/sh

. git-sh-setup || die "Not a git archive"

dryrun=
echo=
while case "$#" in 0) break ;; esac
do
    case "$1" in
    -n) dryrun=-n echo=echo ;;
    --) break ;;
    -*) echo >&2 "usage: git-prune [ -n ] [ heads... ]"; exit 1 ;;
    *)  break ;;
    esac
    shift;
done

git-fsck-objects --full --cache --unreachable "$@" |
sed -ne '/unreachable /{
    s/unreachable [^ ][^ ]* //
    s|\(..\)|\1/|p
}' | {
	cd "$GIT_OBJECT_DIRECTORY" || exit
	xargs $echo rm -f
}

git-prune-packed $dryrun
back to top