Skip to content

git-magic: Automated commit messages#940

Merged
spacewander merged 3 commits intotj:masterfrom
overengineer:feature/magic
Oct 10, 2021
Merged

git-magic: Automated commit messages#940
spacewander merged 3 commits intotj:masterfrom
overengineer:feature/magic

Conversation

@overengineer
Copy link
Copy Markdown
Contributor

@overengineer overengineer commented Sep 26, 2021

Introducing a new command that automates git add && git commit routines.
Check commit bodies on this branch to see generated messages:)

Tested only on Linux.
GNU bash, version 5.0.16(1)-release (x86_64-pc-linux-gnu)
git version 2.25.1

Comment thread Commands.md Outdated
@overengineer overengineer changed the title git-magic and git-auto: Automated commit messages git-magic: Automated commit messages Sep 27, 2021
Comment thread man/git-magic.md Outdated
Comment thread man/git-magic.md Outdated
Comment thread bin/git-magic Outdated
Comment thread bin/git-magic Outdated
Comment thread bin/git-magic Outdated
Comment thread man/git-magic.md Outdated
Comment thread bin/git-magic Outdated
Comment thread man/git-magic.md Outdated
Comment thread bin/git-magic Outdated
Comment thread bin/git-magic Outdated
Comment thread bin/git-magic Outdated
Comment thread bin/git-magic Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

We can use git root to do that?

Copy link
Copy Markdown
Contributor Author

@overengineer overengineer Oct 7, 2021

Choose a reason for hiding this comment

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

Isn't it better to left it independent & copy/pasteable?

Comment thread bin/git-magic Outdated
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

IMHO, -A would be better for adding everything.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

git commit has flag -a which adds everything.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

also easier to type e.g. git magic -apfm "Updated docs"

Comment thread bin/git-magic Outdated
Comment thread bin/git-magic Outdated
@spacewander
Copy link
Copy Markdown
Collaborator

@overengineer
Could you squash it into a few commits before we can merge it?

@overengineer overengineer force-pushed the feature/magic branch 2 times, most recently from 4b225e1 to e010147 Compare October 8, 2021 04:18
@spacewander spacewander merged commit b33ec65 into tj:master Oct 10, 2021
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