Skip to content

Commit 9c18d78

Browse files
author
Vladimir Kotal
committed
Merge pull request #786 from vladak/historyzap_option
add zaphist sub-command to clear history cache for given repository
2 parents 0df451c + f9d25a8 commit 9c18d78

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

OpenGrok

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Usage()
9191

9292
exec >&2
9393
echo ""
94-
echo "Usage: ${progname} <deploy|derby|update|updateQuietly|usage|help>"
94+
echo "Usage: ${progname} <deploy|derby|update|updateQuietly|usage|help|histzap>"
9595
echo " ${progname} index [<directory>]"
9696
echo ""
9797
echo " Optional environment variables:"
@@ -882,6 +882,15 @@ DerbyServer()
882882
esac
883883
}
884884

885+
#
886+
# Clear history index for given project.
887+
#
888+
ZapHistory()
889+
{
890+
Progress "Removing history index data for repository ${1}"
891+
StdInvocation -k "${1}"
892+
}
893+
885894
#
886895
# Main Program
887896
#
@@ -933,6 +942,13 @@ case "${1}" in
933942
UpdateDescriptionCache
934943
;;
935944

945+
zaphist)
946+
if [ -z "${2}" ]; then
947+
Usage
948+
fi
949+
ZapHistory "${2}"
950+
;;
951+
936952
usage|help)
937953
OpenGrokUsage
938954
Usage

0 commit comments

Comments
 (0)