foriequal0 / git-trim

Automatically trims your branches whose tracking remote refs are merged or stray
MIT License
490 stars 14 forks source link

"Consider following to scan them" message looks awkward #181

Closed majecty closed 3 years ago

majecty commented 3 years ago

Check your version before submitting the bug 0.42

Describe the bug

When I run the git-trim, I can see the message like below:

Some branches are skipped. Consider following to scan them:
    *2: Set an upstream to make it a tracking branch or add `--delete 'local' flag.
    *3: Make it upstream of a tracking branch or add `--delete 'remote:origin' flag.

To Reproduce

  1. Clone git-trim: git clone git-trim
  2. Move to the git-trim directory: cd git-trim
  3. Create any branch: git branch -f x
  4. Run git-trim: git-trim

Expected behavior

There is a ` before --delete 'remove:origin'. There is no closing ` in the message. Shouldn' it be `--delete 'remote:origin'` ?

Actual behaviour

git-trim prints add `--delete 'remote:origin' flag. The message does not close `.

Additional context and logs & dumps if necessary

Logs and stacktraces if necessary

foriequal0 commented 3 years ago

I'll really appreciate a PR for it.