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

Re: [PATCH v4 0/4] Ensure that we can build without libgen.h

From: Johannes Schindelin <hidden>
Date: 2016-06-15 23:07:43

Hi Ramsay,

On Wed, 13 Jan 2016, Ramsay Jones wrote:
On 12/01/16 07:57, Johannes Schindelin wrote:
quoted
This mini series adds a fall-back for the `dirname()` function that we use
e.g. in git-am. This is necessary because not all platforms have a working
libgen.h.

While at it, we ensure that our basename() drop-in conforms to the POSIX
specifications.
I was somewhat disappointed that you ignored the implementation of
gitbasename() and gitdirname() that was included in the test-libgen.c
file that I sent you.
I am sorry you feel that I ignored your work!

My line of reasoning, however, was to go with the existing gitbasename()
and with the gitdirname() I had come up with, because I was already
familiar with them.

Your tests included a couple of corner cases that neither handled
correctly, and I was able to fix that, so I was happy.

To be quite honest, I blindly deleted everything but the tests, noticed
that the remaining code looked eerily similar to test-path-utils, and
merged it there.

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