Open
Conversation
…h name, last commit date and last commit author for each branch in CSV format. added unit test for verifying csv output.
Collaborator
|
Very cool. Thank you for working on this. If you can update this pull request to drop into I think this link will get you to a screen that will let you edit this PR https://github.com/dotEvan/git-sweep/pull/new/arc90:master...dotEvan:feature/csv |
Author
|
Huh. Looks like that link just created a new pull request... see #9. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 :)