Code

builtin-notes: Add "prune" subcommand for removing notes for missing objects
authorJohan Herland <johan@herland.net>
Sat, 13 Feb 2010 21:28:28 +0000 (22:28 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Feb 2010 03:36:15 +0000 (19:36 -0800)
commitd6576e1fe3ee4bd7bd2cf01d17499c94da24876f
treee0d6fa73ea4ed0b9eaca0d2a23c689622909a13f
parent00fbe63627b72c807e558643f0634e435137122f
builtin-notes: Add "prune" subcommand for removing notes for missing objects

"git notes prune" will remove all notes that annotate unreachable/non-
existing objects.

The patch includes tests verifying correct behaviour of the new subcommand.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-notes.txt
builtin-notes.c
t/t3306-notes-prune.sh [new file with mode: 0755]