Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Clean up the command to create a commit list. #4263

Merged
merged 5 commits into from May 19, 2020
Merged

Conversation

schmmd
Copy link
Member

@schmmd schmmd commented May 19, 2020

I'm not really sure what the previous command does. It seems easier if we simplify the syntax to specify the version range. I think it will make it less likely to make a mistake.


```fish
git log (git describe --always --tags --abbrev=0 HEAD^^)..HEAD^ --oneline
git log v0.9.0..v1.0.0rc4 --oneline
Copy link
Member

@epwalsh epwalsh May 19, 2020

Choose a reason for hiding this comment

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

I feel like this actually makes it more error prone since you can't just copy and paste this commad.. you'd have to edit it to change the tags.

And git describe --always --tags --abbrev=0 HEAD^^ just prints the name of the previous tag.

Would doing

Suggested change
git log v0.9.0..v1.0.0rc4 --oneline
git log `git describe --always --tags --abbrev=0 $TAG^`..$TAG --oneline

make it more clear?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, substantially. It would also reduce error, as the previous command depends on the commit you're at.

RELEASE_PROCESS.md Outdated Show resolved Hide resolved
Or, if you're using fish,

```fish
git log (git describe --always --tags --abbrev=0 HEAD^^)..HEAD^ --oneline
Copy link
Member

Choose a reason for hiding this comment

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

I like having this because I'm a fisher, so I can just copy and paste it. That said, I'm not opposed to removing it. I could always just stuff this into a function in my dotfiles.

Copy link
Member Author

@schmmd schmmd May 19, 2020

Choose a reason for hiding this comment

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

I am too. I only deleted it because my change made the command identical for fish and bash. Your modifications added some bash/fish-specific stuff back in.

Copy link
Member Author

Choose a reason for hiding this comment

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

Pete--I added a fish command back in. I recommend taking a second look.

schmmd and others added 3 commits May 19, 2020 15:53
Copy link
Member

@epwalsh epwalsh left a comment

Choose a reason for hiding this comment

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

Looks good! Much more clear. Just one small typo

RELEASE_PROCESS.md Outdated Show resolved Hide resolved
Co-authored-by: Evan Pete Walsh <epwalsh10@gmail.com>
@schmmd schmmd merged commit 65a146d into master May 19, 2020
@schmmd schmmd deleted the commit-list-cleanup branch May 19, 2020 23:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants