Re: Verbose Commit Ignore Line Fails via CRLF Line Endings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2024-10-08 at 18:30:53, Spencer Fretwell wrote:
> gc -v produces CRLF file which does not ignore verbose description.

I'm not sure what software you're suggesting here, but we don't
distribute any software called "gc".  I can't imagine `git gc` is
affecting anything here.  Is this maybe an alias for `git commit` or
something else?  (I'm going to assume so below.)  If so, do you see the
problem with a plain `git commit -v`?

> OSX + git-annex (pre-commit hook disabled just in case)
> using subl -w (sublime text 4) as editor, which indicated the change
> in line endings
> - committing as Unix fixes the issue (workaround, tedious)
> - leaving as Windows is the issue
> 
> see attached bugreport

> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
> 
> What did you do before the bug happened? (Steps to reproduce your issue)
> 
> - gc -v
> 
> What did you expect to happen? (Expected behavior)
> 
> - line endings respect OS
> - gc without -v uses Unix line endings
> - line ending is visible in sublime (editor = subl -w)

Does this happen if you use a different editor as well, such as vi or
nano?  I don't see this on a Linux system with `git commit -v` using
Neovim.

Also, if you do see this problem when you open the editor, can you leave
the editor as it is (don't save or modify the file), and change into
another terminal window and use something like `xxd -g` or `od -tx1` to
see if `.git/COMMIT_EDITMSG` has CRLF pairs (that should show up as `0d
0a`) or just LF (plain `0a`)?

The reason I ask this is that I'm wondering if maybe there's a
configuration of your editor that's causing it to switch into a special
diff mode with `git commit -v` that it thinks should have CRLF endings.
-- 
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux