summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Frécinaux <code@istique.net>2008-05-19 12:01:53 (GMT)
committerSteve Frécinaux <code@istique.net>2008-05-19 12:02:44 (GMT)
commit8ac7a5690f3cac2a92f6d6f02aa3d8d4b9849d6e (patch)
tree2e75bf4e8397518e5c0fbc657a5e4cbe3733949b
parent14858dc4ac954f01d7278941121afead2abe2fca (diff)
downloadgit-bugzilla-8ac7a5690f3cac2a92f6d6f02aa3d8d4b9849d6e.tar.gz
git-bugzilla-8ac7a5690f3cac2a92f6d6f02aa3d8d4b9849d6e.tar.xz
Use 'git command' instead of 'git-command'.
It has become the recommended way to proceed for some time now. Let's follow it.
-rwxr-xr-xgit-send-bugzilla.pl16
1 files changed, 8 insertions, 8 deletions
diff --git a/git-send-bugzilla.pl b/git-send-bugzilla.pl
index 83e1364..daaff57 100755
--- a/git-send-bugzilla.pl
+++ b/git-send-bugzilla.pl
@@ -56,7 +56,7 @@ sub get_patch_info {
my $description;
my $comment = '';
- open COMMIT, '-|', 'git-cat-file commit ' . ($rev2 ? $rev2 : $rev1);
+ open COMMIT, '-|', 'git cat-file commit ' . ($rev2 ? $rev2 : $rev1);
# skip headers
while (<COMMIT>) {
chop;
@@ -67,9 +67,9 @@ sub get_patch_info {
close COMMIT;
$comment .= "\n---\n" unless $comment eq '';
- $comment .= `git-diff-tree --stat --no-commit-id $rev1 $rev2`;
+ $comment .= `git diff-tree --stat --no-commit-id $rev1 $rev2`;
- my $patch = `git-diff-tree -p $rev1 $rev2`;
+ my $patch = `git diff-tree -p $rev1 $rev2`;
return ($description, $comment, $patch);
}
@@ -114,7 +114,7 @@ sub read_repo_config {
my $type = shift || 'str';
my $default = shift || '';
- my $arg = 'git-repo-config';
+ my $arg = 'git config';
$arg .= " --$type" unless $type eq 'str';
chop (my $val = `$arg --get bugzilla.$key`);
@@ -156,8 +156,8 @@ my $bugid = shift @ARGV
# Get revisions to build patch from. Do the same way git-format-patch does.
my @revisions;
-open REVPARSE, '-|', 'git-rev-parse', ('--revs-only', @ARGV)
- or die "Cannot call git-rev-parse: $!";
+open REVPARSE, '-|', 'git rev-parse', ('--revs-only', @ARGV)
+ or die "Cannot call git rev-parse: $!";
chop (@revisions = <REVPARSE>);
close REVPARSE;
@@ -171,8 +171,8 @@ if (@revisions eq 0) {
if (!$squash) {
# Get revision list
- open REVLIST, '-|', "git-rev-list", @revisions
- or die "Cannot call git-rev-list: $!";
+ open REVLIST, '-|', "git rev-list", @revisions
+ or die "Cannot call git rev-list: $!";
chop (@revisions = reverse <REVLIST>);
close REVLIST;