Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

remove perl from git-commit.sh

From: Alex Riesen <hidden>
Date: 2016-06-15 22:42:33

git-commit.sh has the only one place where perl is used
and there it can quite trivially be done in sh.

git-ls-files without "-z" produces quoted output, even if
is different from that produced by perl code it could be
enough. Otherwise I'd better suggest to add another
quoting style (replacing only \t, \n and backslash).

This system is an ugly combination of cygwin and
activestate perl. The combination has some quirks
(like the perl producing \r\n by default, expecting
windows pathnames instead of cygwin fakes, or
ignoring environment variables under some hard to
reproduce circumstances), so reducing number of
this interactions reduces number of hacks one has
to put in core code to make things work. I used to
patch git-commit.sh to put binmode in perl output,
and git-clone.sh still has these calls to cygpath.

Signed-off-by: Alex Riesen <redacted>

---

It is really annoying when the essentials do not work.
I think we could improve at  least them, by minimizing
their dependencies to external tools.

Junio C Hamano wrote:
(1) Sign-off?
done
(2) I think the cover letter comment talks more apporpirate
   things than your proposed commit message.  The commit log is
   not a place to vent your frustration.  It's where you
   justify why that change was needed for people who will want
   to figure out why your patch broke their workflow later.
done.

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help