Extract git-interactive function to ig command