Skip to content

Output should indicate if a pull results in an update#93

Open
wade-taylor wants to merge 1 commit into
Branchout:masterfrom
wade-taylor:indicate-updates
Open

Output should indicate if a pull results in an update#93
wade-taylor wants to merge 1 commit into
Branchout:masterfrom
wade-taylor:indicate-updates

Conversation

@wade-taylor
Copy link
Copy Markdown

It would be nice if the output to branchout pull indicated whether a repo was updated or already up-to-date.

Currently the same output is shown for both cases, i.e.:

Pulled  rabbit/rabbit-aleph         master

This PR changes the output to indicate when a repo is up-to-date:

Updated:

Pulled  rabbit/rabbit-aleph         master

Up to date:

Good    rabbit/rabbit-aleph         master

@wade-taylor wade-taylor requested a review from stickycode as a code owner June 30, 2023 04:22
@fredcooke fredcooke self-requested a review July 6, 2023 10:13
Copy link
Copy Markdown
Member

@fredcooke fredcooke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My 2c

Comment thread branchout-project
projectContextStatus "${projectName}" "Pulled "
postPullHash=$(git rev-parse HEAD 2>/dev/null)
if test "${prePullHash}" = "${postPullHash}"; then
projectContextStatus "${projectName}" "Good "
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd much rather this said Current or Matches or UpToDate or something meaningful that fits rather than simply "Good". What if it's bad that there's no new change when you fetch?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or Unchanged or No change or ? I feel like any of the 5 suggestions I've given are better than Good but also that maybe there's a better word/phrase than any of them.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing Good to something else is fine with me. Of those 5 suggestions which one do you like best?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants