Skip to content

commit with custom author date #374

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2018
Merged

Conversation

mgarciaisaia
Copy link
Contributor

Honor git commit --date=... flag.

Re-submitting the stalled #315

@mgarciaisaia mgarciaisaia force-pushed the commit-date branch 2 times, most recently from 6f48fdb to 4c70c1c Compare July 2, 2018 03:38
Copy link
Contributor

@tarcinil tarcinil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once you move the file, you should be able to use @lib in your tests.

set_file_paths
end

def test_add
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in tests/units/test_lib.rb to ensure that things in Git::Lib are tested where they are expected.

The test name makes more sense as #test_commit_with_date in that file.

@mgarciaisaia
Copy link
Contributor Author

Thanks for the feedback, @tarcinil. It seems the project moved really forward since I've submitted the original PR - awesome! 🎉

I've updated the tests to fit the ones that previously existed. It even seems more clear to me, now.

Let me know what you think 👍

Copy link
Contributor

@tarcinil tarcinil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove the one thing and this should be good to go.


author_date = Time.new(2016, 8, 3, 17, 37, 0, "-03:00")

previous = @lib.commit_data('HEAD')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this provide? I do not see it being used anywhere.

@mgarciaisaia
Copy link
Contributor Author

Good catch! It was a leftover from a previous version of the test.

@tarcinil
Copy link
Contributor

Please rebase your branch and I’ll merge it.

Signed-off-by: mgarciaisaia <mgarciaisaia+github@gmail.com>
@mgarciaisaia
Copy link
Contributor Author

Sorry - hoped you could rebase it from here. There it is! 👍

@tarcinil tarcinil merged commit f911c26 into ruby-git:master Jul 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants