consistently use leading upper-case for messages indicating success
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
diff --git a/got/got.c b/got/got.c
index 5b82d9b..dc320bc 100644
--- a/got/got.c
+++ b/got/got.c
@@ -2625,7 +2625,7 @@ cmd_commit(int argc, char *argv[])
error = got_object_id_str(&id_str, id);
if (error)
goto done;
- printf("created commit %s\n", id_str);
+ printf("Created commit %s\n", id_str);
done:
if (repo)
got_repo_close(repo);
@@ -2733,7 +2733,7 @@ cmd_cherrypick(int argc, char *argv[])
goto done;
if (did_something)
- printf("merged commit %s\n", commit_id_str);
+ printf("Merged commit %s\n", commit_id_str);
done:
if (commit)
got_object_commit_close(commit);
@@ -2840,7 +2840,7 @@ cmd_backout(int argc, char *argv[])
goto done;
if (did_something)
- printf("backed out commit %s\n", commit_id_str);
+ printf("Backed out commit %s\n", commit_id_str);
done:
if (commit)
got_object_commit_close(commit);
diff --git a/regress/cmdline/backout.sh b/regress/cmdline/backout.sh
index d6140ca..32c9222 100755
--- a/regress/cmdline/backout.sh
+++ b/regress/cmdline/backout.sh
@@ -42,7 +42,7 @@ function test_backout_basic {
(cd $testroot/wt && got backout $bad_commit > $testroot/stdout)
echo "G alpha" > $testroot/stdout.expected
- echo "backed out commit $bad_commit" >> $testroot/stdout.expected
+ echo "Backed out commit $bad_commit" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
diff --git a/regress/cmdline/cherrypick.sh b/regress/cmdline/cherrypick.sh
index 3562e91..c61d700 100755
--- a/regress/cmdline/cherrypick.sh
+++ b/regress/cmdline/cherrypick.sh
@@ -43,7 +43,7 @@ function test_cherrypick_basic {
echo "G alpha" > $testroot/stdout.expected
echo "D beta" >> $testroot/stdout.expected
echo "A epsilon/new" >> $testroot/stdout.expected
- echo "merged commit $branch_rev" >> $testroot/stdout.expected
+ echo "Merged commit $branch_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
@@ -122,7 +122,7 @@ function test_cherrypick_root_commit {
(cd $testroot/wt && got cherrypick $root_commit > $testroot/stdout)
echo "A epsilon/new" > $testroot/stdout.expected
- echo "merged commit $root_commit" >> $testroot/stdout.expected
+ echo "Merged commit $root_commit" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
diff --git a/regress/cmdline/commit.sh b/regress/cmdline/commit.sh
index 9549704..abae3cb 100755
--- a/regress/cmdline/commit.sh
+++ b/regress/cmdline/commit.sh
@@ -37,7 +37,7 @@ function test_commit_basic {
echo "A new" > $testroot/stdout.expected
echo "M alpha" >> $testroot/stdout.expected
echo "D beta" >> $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
@@ -69,7 +69,7 @@ function test_commit_new_subdir {
local head_rev=`git_show_head $testroot/repo`
echo "A d/new" > $testroot/stdout.expected
echo "A d/new2" >> $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
@@ -97,7 +97,7 @@ function test_commit_subdir {
local head_rev=`git_show_head $testroot/repo`
echo "M epsilon/zeta" >> $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
@@ -125,7 +125,7 @@ function test_commit_single_file {
local head_rev=`git_show_head $testroot/repo`
echo "M epsilon/zeta" >> $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
@@ -203,7 +203,7 @@ function test_commit_added_subdirs {
echo "A d/f/new3" >> $testroot/stdout.expected
echo "A d/new" >> $testroot/stdout.expected
echo "A d/new2" >> $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
diff --git a/regress/cmdline/update.sh b/regress/cmdline/update.sh
index ab51867..a6dc4ac 100755
--- a/regress/cmdline/update.sh
+++ b/regress/cmdline/update.sh
@@ -1441,7 +1441,7 @@ function test_update_bumps_base_commit_id {
local head_rev=`git_show_head $testroot/repo`
echo "M alpha" > $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then
@@ -1480,7 +1480,7 @@ function test_update_bumps_base_commit_id {
local head_rev=`git_show_head $testroot/repo`
echo "M beta" > $testroot/stdout.expected
- echo "created commit $head_rev" >> $testroot/stdout.expected
+ echo "Created commit $head_rev" >> $testroot/stdout.expected
cmp -s $testroot/stdout.expected $testroot/stdout
ret="$?"
if [ "$ret" != "0" ]; then