I\'d like to run git filter-branch on all children of a given commit. This doesn\'t seem to be an easy task, since there doesn\'t appear to be a way to tell
I did a alternative version. I don't know if its better or worse.
getGitChildren(){
git rev-list --all --parents | grep "^.\{40\}.*${1}.*" | awk '{print $1}' | xargs -I commit git log -1 --oneline commit | cat -
}
to be used like that:
$ getGitChildren 2e9df93
f210105376 feat(something): did that feature
9a1632ca04 fix(dummy): fix something
It just give the direct children list of a commit.