Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added --csv option to the preview mode. This clears all other output to stdout except information about which branches are able to be deleted. In addition it supplies the date of the last commit and the committer name.
Sample:
$ ./bin/git-sweep preview --csv
command-line,2012-03-26,robmadole
develop,2012-03-26,robmadole
release-0.1.0,2012-03-21,robmadole
release-0.1.1,2012-03-28,robmadole
This can then be imported into something like Google Docs where the responsible parties can then ensure their branches are able to be deleted.
I also added a unit test, but because of the changing date and author of the output of each branch, just doing an assertion of exact string matches won't work that well. I've never used Python before, so not being familiar with, well, anything isn't lending itself to me finding an awesome way to test this. Hopefully someone else can provide a better way of being able to unit or, if you think counting commas will suffice for now, even better :)