Skip to content

Commit f09afe9

Browse files
committed
more info on commit and publish output
1 parent 164734f commit f09afe9

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

gitless/cli/gl_commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def main(args, repo):
7171

7272
_auto_track(commit_files, curr_b)
7373
ci = curr_b.create_commit(commit_files, msg, partials=partials)
74-
pprint.ok('Commit succeeded')
74+
pprint.ok('Commit on branch {0} succeeded'.format(repo.current_branch))
7575

7676
pprint.blank()
7777
pprint.commit(ci)

gitless/cli/gl_publish.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ def parser(subparsers, _):
2222

2323
def main(args, repo):
2424
current_b = repo.current_branch
25-
current_b.publish(helpers.get_branch_or_use_upstream(args.dst, 'dst', repo))
26-
pprint.ok('Publish succeeded')
25+
dst_b = helpers.get_branch_or_use_upstream(args.dst, 'dst', repo)
26+
current_b.publish(dst_b)
27+
pprint.ok(
28+
'Publish of commits from branch {0} to branch {1} succeeded'.format(
29+
current_b, dst_b))
2730
return True

0 commit comments

Comments
 (0)