git@vger.kernel.org mailing list mirror (one of many)
 help / Atom feed
* Bug or feature: format-patch breaks long subject lines
@ 2017-10-12  8:45 stefan.naewe
  2017-10-12 10:12 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: stefan.naewe @ 2017-10-12  8:45 UTC (permalink / raw)
  To: git

Hello list,

git format-patch breaks (or better: word-wraps) long subject lines.

This is on Windows 7 with

$ git --version
git version 2.14.2.windows.2

Reproduce with (some output omitted):

------------------------------------------------------------------------------
$ git init test-format-patch
$ cd test-format-patch
$ touch file
$ git add file
$ git commit -m"0123456789012345678901234567890123456789012345678901234567890123456789"
$ git format-patch -1 --stdout
From ec711cca330f1032d286114932a90488542f1da2 Mon Sep 17 00:00:00 2001
From: Stefan Naewe <stefan.naewe@gmail.com>
Date: Thu, 12 Oct 2017 10:36:52 +0200
Subject: [PATCH]
 0123456789012345678901234567890123456789012345678901234567890123456789

---
 file | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 file

diff --git a/file b/file
new file mode 100644
index 0000000..e69de29
--
2.14.2.windows.2
------------------------------------------------------------------------------

Is this the expected behaviour?

Thanks,
  Stefan
-- 
----------------------------------------------------------------
/dev/random says: I Have To Stop Now, My Fingers Are Getting Hoarse!
python -c "print '73746566616e2e6e616577654061746c61732d656c656b74726f6e696b2e636f6d'.decode('hex')" 
GPG Key fingerprint = 2DF5 E01B 09C3 7501 BCA9  9666 829B 49C5 9221 27AF

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug or feature: format-patch breaks long subject lines
  2017-10-12  8:45 Bug or feature: format-patch breaks long subject lines stefan.naewe
@ 2017-10-12 10:12 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2017-10-12 10:12 UTC (permalink / raw)
  To: stefan.naewe; +Cc: git

<stefan.naewe@atlas-elektronik.com> writes:

> Is this the expected behaviour?

Yes, it is expected.  Your are seeing the header folding in play.
"mailinfo" (hence "am") will grok it just fine, I think.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-12  8:45 Bug or feature: format-patch breaks long subject lines stefan.naewe
2017-10-12 10:12 ` Junio C Hamano

git@vger.kernel.org mailing list mirror (one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.org/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox