Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

wade-taylor
Copy link

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
Collaborator

@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

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

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
Collaborator

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
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