Thanks to visit codestin.com
Credit goes to github.com

Skip to content

crlf in commit messages #611

@amibar

Description

@amibar

Hi,

Just to emphasize I am talking about crlf in the commit text message and not in text files.

I noticed that 'git commit' and 'git commit-tree' behave differently regarding crlf in the message
.
If I have a text file that contains crlf as new line and I am using:
git commit -F msg.txt
The crlf are converted to lf

But if I am using:
git commit-tree -F msg.txt
the crlf are NOT converted.

As far as I noticed the core.autocrlf doesn't effect the behavior above.

When using the ObjectDatabase you use the first convention
string prettifiedMessage = Proxy.git_message_prettify(message);
although I expected the second, because the API are low level.

Any advise about this?

Referenced issue git-tfs/git-tfs#533

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions