Skip to content

Commit c3f2a3f

Browse files
committed
buildifier
Signed-off-by: Aaron Sky <aaronsky@skyaaron.com>
1 parent 2e310b4 commit c3f2a3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

xcodeproj/internal/files/files.bzl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ def join_paths_ignoring_empty(*components):
132132

133133
def relativize_unchecked(path, start):
134134
"""
135+
Calculates a naïve relative path from a `start` path to `path`.
136+
135137
Prefer `paths.relativize(...)` from skylib over this function. This function
136138
unconditionally attempts to establish a relative path between two paths,
137139
regardless of whether or not the path is under the source. It is inherently
@@ -140,6 +142,9 @@ def relativize_unchecked(path, start):
140142
Args:
141143
path: The path to relativize, as the destination.
142144
start: The path to relativize against, as the source.
145+
146+
Returns:
147+
A path string.
143148
"""
144149
segments = paths.normalize(path).split("/")
145150
start_segments = paths.dirname(paths.normalize(start)).split("/")

0 commit comments

Comments
 (0)