jjc: Non-interactive hunk-level operations for Jujutsu

28 points by op


altano

I assume this is awesome for AI workflows? You could say “split this commit up into multiple smaller commits, make sure validation passes.” Sounds like it could make smaller PRs much easier for inexperienced devs (or maybe anyone).

I can’t think of any other use cases tho. Interactive selection seems way better for humans. Or am I missing something?

trenchant

I hope this name doesn't take off :-)

jjc() {
    if [ $# -eq 0 ]; then
        echo "Usage: jjc <commit message>"
        return 1
    fi
    jj commit -m "$*"
}
rockorager

I made a git version of this a few months ago, for those of us who haven't seen the light yet (github.com/rockorager/git-hunks)