get_relative_cwd(): clarify why it handles dir == NULL
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Wed, 1 Aug 2007 18:26:59 +0000 (19:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 1 Aug 2007 18:34:13 +0000 (11:34 -0700)
commit420acb31acbfbd78e0c35ac0c614de8717daed0a
treeab2a1bb98e4afeb392d2d0cbd9075f9ba0fb3962
parente90fdc39b6903502192b2dd11e5503cea721a1ad
get_relative_cwd(): clarify why it handles dir == NULL

The comment did not make a good case why it makes sense.
Clarify, and remove stale comment about the caller being lazy.
The behaviour on NULL input is pretty much intentional.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c