Skip to content

Commit

Permalink
git: ActionChanges - support ./ path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
rsteube committed Jan 5, 2024
1 parent ef55637 commit a031e40
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/actions/tools/git/change.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@ func ActionChanges(opts ChangeOpts) carapace.Action {
}
}
}
return carapace.ActionStyledValuesDescribed(untracked...)

action := carapace.ActionStyledValuesDescribed(untracked...)
if strings.HasPrefix(c.Value, "./") {
action = action.Prefix("./")
}
return action
}
})
}).Tag("changed files")
Expand Down

0 comments on commit a031e40

Please sign in to comment.