Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Difficulty adding a symbolic link, part 3

From: Dale R. Worley <hidden>
Date: 2016-06-15 22:58:17

From: Duy Nguyen <redacted>
quoted
With the above change, the test suite runs with zero failures, so it
doesn't affect any common Git usage.
It means the test suite is incomplete. As you can see, the commit
introducing this change does not come with a test case to catch people
changing this.
Who should be blamed for omitting the test?
quoted
Can someone give me advice on what this code *should* do?
It does as the function name says: given cwd, a prefix (i.e. a
relative path with no ".." components) and a path relative to
cwd+prefix, convert 'path' to something relative to cwd. In the
simplest case, prepending the prefix to 'path' is enough. cwd is also
get_git_work_tree().
But as you can see, the exact behavior that the function is intended
to exhibit regarding symlinks is not clear from the function name;
there should have been a real explanation in the comment above the
function.

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