args: allow to use multiple `--refs` arguments
Refs arguments are passed to git rev-list allowing user to configure the set of commits to operate on. IMHO it's important to be able to pass through any desirable rev-list configurations. This often requires using multiple --refs arguments.
Examples:
git filter-repo --refs head1 --refs head2git filter-repo --refs='--glob:refs/heads/*' --refs='--glob:refs/tags/*'git filter-repo --refs='--glob:refs/heads/*' --refs='--not' --refs='master
@newren Hi, could you please review this one when you have some free time? This patch is good for cases when you need to rewrite ref history partially.
Sorry for the delay.
The PR is interesting, but it is going to break people that have already been passing multiple refs like so:
git filter-repo --refs head1 head2
or
git filter-repo --refs ^master head1 head2
This would also invalidate part of the documentation, and would cause one of the tests in the regression testsuite to fail. This might make sense as an alternative way to have done things from the beginning, but I don't like breaking existing uses.