commit a7648d7ad78682e85d33fb8daf304d2eb4ed1c7b from: Stefan Sperling date: Sun Jun 02 19:35:20 2019 UTC consistently use leading upper-case for messages indicating success commit - 07f5b47a743b8436b0a26055e563b23c29e3cf28 commit + a7648d7ad78682e85d33fb8daf304d2eb4ed1c7b blob - 5b82d9b91538794dff2694713b051107efd74e9e blob + dc320bc6859d1b9bf116e17261cf9027f3d0fe3f --- got/got.c +++ 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); blob - d6140ca8eb2f4465f26784c06d824446c3fda162 blob + 32c922210f36d14f9c0ec9049fbeca34d9690528 --- regress/cmdline/backout.sh +++ 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 blob - 3562e9126cc0de852853d37ca03d9b6d6ccb92d5 blob + c61d7000e2cb05d1e10ad730c19fe43bb3689513 --- regress/cmdline/cherrypick.sh +++ 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="$?" blob - 9549704520f25c939fd08ad6880b9a55d63c3b4f blob + abae3cb76ee35856a4531d70975bd861a55dea64 --- regress/cmdline/commit.sh +++ 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="$?" blob - ab518679ea7cb4197f1beebbdeb2d17ff873976f blob + a6dc4acd563e401fed61b1f013cbce3d46f87330 --- regress/cmdline/update.sh +++ 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