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

[Feature request] Add git-config commit.cleanup support #108

Open
nikitabobko opened this issue Dec 22, 2021 · 0 comments
Open

[Feature request] Add git-config commit.cleanup support #108

nikitabobko opened this issue Dec 22, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@nikitabobko
Copy link

Quote from man git-commit:

--cleanup=<mode>
    This option determines how the supplied commit message should be cleaned up before committing. The <mode> can be strip, whitespace, verbatim, scissors or default.

    strip
        Strip leading and trailing empty lines, trailing whitespace, commentary and collapse consecutive empty lines.

    whitespace
        Same as strip except #commentary is not removed.

    verbatim
        Do not change the message at all.

    scissors
        Same as whitespace except that everything from (and including) the line found below is truncated, if the message is to be edited. "#" can be customized with core.commentChar.

            # ------------------------ >8 ------------------------

    default
        Same as strip if the message is to be edited. Otherwise whitespace.

    The default can be changed by the commit.cleanup configuration variable (see git-config(1)).
@mystor mystor added the enhancement New feature or request label Dec 23, 2021
nikitabobko added a commit to nikitabobko/git-revise that referenced this issue Jul 2, 2022
See `--cleanup` in `man git commit`.

Fix mystor#108

Co-authored-by: ruro <ruro.ruro@ya.ru>
nikitabobko added a commit to nikitabobko/git-revise that referenced this issue Jul 3, 2022
See `--cleanup` in `man git commit`.

Fix mystor#108

Co-authored-by: ruro <ruro.ruro@ya.ru>
nikitabobko added a commit to nikitabobko/git-revise that referenced this issue Jul 3, 2022
See `--cleanup` in `man git commit`.

Fix mystor#108

Co-authored-by: ruro <ruro.ruro@ya.ru>
nikitabobko added a commit to nikitabobko/git-revise that referenced this issue Jul 3, 2022
See `--cleanup` in `man git commit`.

Fix mystor#108

Co-authored-by: ruro <ruro.ruro@ya.ru>
nikitabobko added a commit to nikitabobko/git-revise that referenced this issue Aug 26, 2022
See `--cleanup` in `man git commit`.

Fix mystor#108

Co-authored-by: ruro <ruro.ruro@ya.ru>
nikitabobko added a commit to nikitabobko/git-revise that referenced this issue Jan 11, 2023
See `--cleanup` in `man git commit`.

Fix mystor#108

Co-authored-by: ruro <ruro.ruro@ya.ru>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants