Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Better git error #57

Merged
merged 8 commits into from
Feb 23, 2016
Merged

Better git error #57

merged 8 commits into from
Feb 23, 2016

Conversation

badboy
Copy link
Member

@badboy badboy commented Feb 4, 2016

A nice and long error message and fetching the git author name the same way real git does it.
I'm not 100% happy with the code and the error message could be improved as well.

One warning remains: We need the temp variable in git.rs:121, because
for some reason this satisfies the compiler to not complain about the
repo living only shortly.
@badboy
Copy link
Member Author

badboy commented Feb 4, 2016

It should have a test before merging.

Also: We need better error handling. String is really not that good here. Will work on that before this is ready.

@schultyy
Copy link
Member

schultyy commented Feb 5, 2016

@badboy Can this be merged or is there work to be done first?

@badboy
Copy link
Member Author

badboy commented Feb 5, 2016

I'm not 100% satisfied with the user-visible error message. Gonna rewrite that and then merge it

We're using the committer infomration for both, author and committer,
anyway. Allowing both variables seems to be too confusing.
@badboy
Copy link
Member Author

badboy commented Feb 6, 2016

3256a8c now has a much nicer error message, which I took from man git-commit-tree (and slightly modified).

14ad9f0 removes support for the GIT_AUTHOR_* variables as I think it is too confusing and a single variable per setting is good enough.

If you agree with all (and tests are green): Ready to merge.

@badboy
Copy link
Member Author

badboy commented Feb 6, 2016

Forgot to remove one sentence, fixed in b278629

badboy added a commit that referenced this pull request Feb 23, 2016
@badboy badboy merged commit cc41d7e into master Feb 23, 2016
@badboy badboy deleted the better-git-error branch February 23, 2016 19:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants