Skip to content

Commit

Permalink
Merge pull request #6 from sytone/master
Browse files Browse the repository at this point in the history
Changed references to colrm to allow usage on windows
  • Loading branch information
nvie committed Nov 29, 2018
2 parents 4ea5c29 + 543b72c commit 4f240b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion git-assume
Expand Up @@ -22,7 +22,7 @@ done
shift $(($OPTIND - 1))

locally_modified_files () {
git status --porcelain --untracked-files=no | colrm 1 1 | grep -Ee '^[MD]' | colrm 1 2
git status --porcelain --untracked-files=no | cut -c 2- | grep -Ee '^[MD]' | cut -c 3-
}

if [ $all -eq 1 ]; then
Expand Down
6 changes: 3 additions & 3 deletions git-modified
Expand Up @@ -81,15 +81,15 @@ make_relative () {
}

modified_in_index () {
status | colrm 1 3 | fix_rename_notation | make_relative
status | cut -c 4- | fix_rename_notation | make_relative
}

modified_unmerged () {
status | grep -Ee '^(U.|.U)' | colrm 1 3 | fix_rename_notation | make_relative
status | grep -Ee '^(U.|.U)' | cut -c 4- | fix_rename_notation | make_relative
}

modified_locally () {
status | colrm 1 1 | grep -vEe '^[ ]' | colrm 1 2 | fix_rename_notation | make_relative
status | cut -c 2- | grep -vEe '^[ ]' | cut -c 3- | fix_rename_notation | make_relative
}

fail_if_empty () {
Expand Down

0 comments on commit 4f240b2

Please sign in to comment.