X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=git-checkout.sh;h=4cf30e2c0529e90886e6edfd485cec67a278e224;hb=4518bb88392fcd44bacae640754e7326a8fdf477;hp=4c08f36b591508b5d940384db603e2f4483116d6;hpb=13d1cc3604a1a64cb5a6025bba8af8b74a373963;p=git.git diff --git a/git-checkout.sh b/git-checkout.sh index 4c08f36b..4cf30e2c 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -1,5 +1,5 @@ #!/bin/sh -. git-sh-setup || die "Not a git archive" +. git-sh-setup usage () { die "usage: git checkout [-f] [-b ] [] [...]" @@ -82,7 +82,6 @@ then # rescuing paths and is never meant to remove what # is not in the named tree-ish. git-ls-tree -r "$new" "$@" | - sed -ne 's/^\([0-7]*\) blob \(.*\)$/\1 \2/p' | git-update-index --index-info || exit $? fi git-checkout-index -f -u -- "$@"