Skip to content

Commit e5ae97e

Browse files
committed
deal with formatting renamed files
1 parent 2031918 commit e5ae97e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nurfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,16 @@ def changed-files [] {
154154
| rename "state" "name"
155155
)
156156
# print $changed
157-
let result = $changed | where {is-changed $in.state} | get "name"
157+
let result = (
158+
$changed
159+
| where {is-changed $in.state}
160+
| get "name"
161+
| each {
162+
if ($in | str contains " -> ") {
163+
$in | parse "{a} -> {b}" | get "b" | $in.0
164+
} else { $in }
165+
}
166+
)
158167
# print $result
159168
$result
160169
}

0 commit comments

Comments
 (0)