]> git.ipfire.org Git - thirdparty/git.git/commit - shallow.c
prune: clean .git/shallow after pruning objects
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Thu, 5 Dec 2013 13:02:54 +0000 (20:02 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 11 Dec 2013 00:14:19 +0000 (16:14 -0800)
commiteab3296c7e5c99f559818357e70eeae09c24ac99
treee8ded7e86858b5a28315e8b4d7687235f0e5e2d7
parent0d7d285f0e29abb994fe32db87ee81b00f403bd2
prune: clean .git/shallow after pruning objects

This patch teaches "prune" to remove shallow roots that are no longer
reachable from any refs (e.g. when the relevant refs are removed).

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-prune.txt
builtin/gc.c
builtin/prune.c
commit.h
shallow.c
t/t5304-prune.sh