#!/bin/sh # # Copyright (c) 2006, Shawn O. Pearce # # Cleanup unreachable files and optimize the repository. USAGE='[--prune]' SUBDIRECTORY_OK=Yes . git-sh-setup no_prune=: while test $# != 0 do case "$1" in --prune) no_prune= ;; --) usage ;; esac shift done case "$(git config --get gc.packrefs)" in notbare|"") test $(is_bare_repository) = true || pack_refs=true;; *) pack_refs=$(git config --bool --get gc.packrefs) esac test "true" != "$pack_refs" || git pack-refs --prune && git reflog expire --all && git-repack -a -d -l && $no_prune git prune && git rerere gc || exit
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
README | File | 167 B | 0644 |
|
builtin-fetch--tool.c | File | 12.73 KB | 0644 |
|
git-checkout.sh | File | 7.44 KB | 0644 |
|
git-clean.sh | File | 2.21 KB | 0644 |
|
git-clone.sh | File | 12.4 KB | 0644 |
|
git-commit.sh | File | 14.04 KB | 0644 |
|
git-fetch.sh | File | 8.9 KB | 0644 |
|
git-gc.sh | File | 594 B | 0644 |
|
git-ls-remote.sh | File | 2.48 KB | 0644 |
|
git-merge-ours.sh | File | 338 B | 0644 |
|
git-merge.sh | File | 14.08 KB | 0644 |
|
git-notes.sh | File | 2.65 KB | 0644 |
|
git-remote.perl | File | 10.14 KB | 0644 |
|
git-rerere.perl | File | 6.05 KB | 0644 |
|
git-reset.sh | File | 2.25 KB | 0644 |
|
git-resolve.sh | File | 2.65 KB | 0644 |
|
git-revert.sh | File | 4.58 KB | 0644 |
|
git-svnimport.perl | File | 24.39 KB | 0644 |
|
git-svnimport.txt | File | 5.26 KB | 0644 |
|
git-tag.sh | File | 3.93 KB | 0644 |
|
git-verify-tag.sh | File | 749 B | 0644 |
|