Skip to content

prefix git conflict grep path with git repo root#327

Open
turbocrime wants to merge 1 commit into
geometry-zsh:mainfrom
turbocrime:fix-git-grep-path
Open

prefix git conflict grep path with git repo root#327
turbocrime wants to merge 1 commit into
geometry-zsh:mainfrom
turbocrime:fix-git-grep-path

Conversation

@turbocrime

Copy link
Copy Markdown

fixes #326

Comment thread functions/geometry_git
Comment on lines +76 to +78
git_root=$(git rev-parse --show-toplevel)

conflict_list=$($_grep -cH '^=======$' ${git_root/$^conflicts})

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this expansion feels fragile, not sure of best practice here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge conflict display fails if CWD is not git repo root

1 participant