1 |
commit: 3886c469547e839011897a86b782c420be52ca26 |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Mar 2 11:11:17 2013 +0000 |
4 |
Commit: Ulrich Mueller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 2 11:11:17 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=3886c469 |
7 |
|
8 |
Update comment for relative_name function. |
9 |
|
10 |
--- |
11 |
libs/path-manipulation.bash.in | 3 ++- |
12 |
1 files changed, 2 insertions(+), 1 deletions(-) |
13 |
|
14 |
diff --git a/libs/path-manipulation.bash.in b/libs/path-manipulation.bash.in |
15 |
index aeee4be..0e02e0a 100644 |
16 |
--- a/libs/path-manipulation.bash.in |
17 |
+++ b/libs/path-manipulation.bash.in |
18 |
@@ -67,7 +67,8 @@ canonicalise() { |
19 |
} |
20 |
|
21 |
# relative_name |
22 |
-# Convert filename $1 to be relative to directory $2 (both must exist). |
23 |
+# Convert filename $1 to be relative to directory $2. |
24 |
+# For both paths, all but the last component must exist. |
25 |
relative_name() { |
26 |
local path=$(canonicalise "$1") dir=$(canonicalise "$2") c |
27 |
while [[ -n ${dir} ]]; do |