Lines Matching full:git
8 """git-make-shallow: make the current git repository shallow
31 git_dir = check_output(['git', 'rev-parse', '--git-dir']).rstrip()
35 check_output(['git', 'fetch', '--unshallow'])
44 revs = check_output(['git', 'rev-list'] + args.revisions).splitlines()
48 ref_revs = check_output(['git', 'rev-list'] + args.refs).splitlines()
51 if check_output(['git', 'rev-parse', '{}^@'.format(rev)]):
58 subprocess.check_call(['git', 'fsck', '--unreachable'])
63 # can't be easily restored with a git fetch.
66 …parser.add_argument('--shrink', '-s', action='store_true', help='shrink the git repository by repa…
67 parser.add_argument('revisions', metavar='REVISION', nargs='+', help='a git revision/commit')
75 … args.refs = check_output(['git', 'rev-parse', '--symbolic-full-name'] + args.refs).splitlines()
80 …args.revisions = check_output(['git', 'rev-parse'] + ['%s^{}' % i for i in args.revisions]).splitl…
98 …ref_output = check_output(['git', 'for-each-ref', '--format=%(refname)\t%(objecttype)\t%(*objectty…
112 """Remove all but the specified refs from the git repository."""
116 check_output(['xargs', '-0', '-n', '1', 'git', 'update-ref', '-d', '--no-deref'],
129 parents = check_output(['git', 'rev-parse', '%s^@' % rev]).splitlines()
137 … check_refs = check_output(['git', 'merge-base', '--independent'] + sorted(refs)).splitlines()
142 merge_base = check_output(['git', 'merge-base', parent, ref]).rstrip()
162 subprocess.check_call(['git', 'reflog', 'expire', '--expire-unreachable=now', '--all'])
163 subprocess.check_call(['git', 'repack', '-ad'])
169 subprocess.check_call(['git', 'prune', '--expire', 'now'])