Last active
December 25, 2024 15:49
-
-
Save gcollic/f6f093ec3805979669d0bf744e22c72a to your computer and use it in GitHub Desktop.
Replace the path to git by the path of this file in order to stop IntelliJ from messing with your staging area (no config for rename & co).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
inner() { | |
local cmd="$@" | |
local REGEX="(^|log.showSignature=false )(add|rm|mv) " | |
if [[ $cmd =~ $REGEX ]]; then | |
echo 'Stopping IntelliJ from being a not well-behaved git client. See IDEA-194592, IDEA-63391, IDEA-176961, ...' >&2 | |
return 1 | |
fi | |
git "$@" | |
} | |
inner "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've rewritten it in python, because I needed this functionality in Windows: https://gist.github.com/ivanpu/a9b02721163e10f21d914c8ae42e598d