summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorStig Thormodsrud <stig@vyatta.com>2010-11-11 15:23:54 -0800
committerStig Thormodsrud <stig@vyatta.com>2010-11-11 15:23:54 -0800
commitec9a597a4e7b98ab54a7d5f049b2f4d1d09d947c (patch)
tree1687d53af3f9c121a038c0d1becb5b8641b9c3db /scripts
parentda5f3fef00f713e8ebbf0f62630eb8a2dbb0977a (diff)
downloadvyatta-config-mgmt-ec9a597a4e7b98ab54a7d5f049b2f4d1d09d947c.tar.gz
vyatta-config-mgmt-ec9a597a4e7b98ab54a7d5f049b2f4d1d09d947c.zip
Add "show-commit-log-brief" for tab completion.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/vyatta-config-mgmt.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/vyatta-config-mgmt.pl b/scripts/vyatta-config-mgmt.pl
index 31ccca9..95abdb1 100755
--- a/scripts/vyatta-config-mgmt.pl
+++ b/scripts/vyatta-config-mgmt.pl
@@ -211,6 +211,17 @@ if ($action eq 'show-commit-log') {
exit 0;
}
+if ($action eq 'show-commit-log-brief') {
+ print "show-commit-log-brief\n" if $debug;
+ my $max_revs = cm_get_max_revs();
+ my @log = cm_commit_get_log(1);
+ foreach my $line (@log) {
+ $line =~ s/\s/_/g;
+ print $line, ' ';
+ }
+ exit 0;
+}
+
if ($action eq 'show-commit-file') {
die "Error: no revnum" if ! defined $revnum;
print "show-commit-file [$revnum]\n" if $debug;