gitsvnlist

Git equivalence of SVN Changelist?


Just curious if Git has something like Subversions Changelist feature, its something that I find quite handy working with on the fly, I know I could run something like:

cat 'changelistfileimade' | xargs git update

but am curious if there's a built in method too?


Solution

  • I have never used SVN changelists myself, but if I understand correctly, it allows you to group files into changelists and later separately commit those changelists. (Right?)

    I don't think you really need such a feature with Git. You can already separately stage (git add) each file or parts of it (git add -p) independently and commit those. You can create branches for each of your changelist, and later merge/rebase those branches. Or you can create several commits and later re-order them with interactive rebase (git rebase -i).

    Instead of svn diff --changelist something, you will simply use git show changelistbranch.

    You don't have to push those local/temporary branches. Nobody needs to see them, until you consider them ready to be released into the wild.

    You can even namespace your "changelist branches": git branch changelist/name_of_your_changelist, you will then have all changelists grouped by their prefix.

    Am I missing something?