Skip to content
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

Rename arguments related to diff to firstRevision, secondRevision to … #4344

Conversation

gerhardol
Copy link
Member

…have a consistent naming

No functionality change, just renaming of arguments.
For those that are reviewing(also without commit privileges), if you agree, please add a comment about that.
If you have better names, suggest that too.

This was discussed in #4313, the core files in the PR was changed already
firstRevision/secondRevision was the most commonly used arguments. Some arguments have been aligned to from/to in #4031 PRs.
Other names discussed was revA/revB.

What did I do to test the code and ensure quality:

  • Code review

Has been tested on (remove any that don't apply):

  • Windows 10

…have a consistent naming

This was discussed in gitextensions#4313, the core files in the PR was changed already
firstRevision/secondRevision was the most commonly used arguments. Some arguments have been aligned to from/to in gitextensions#4031 PRs.
Other names discussed was revA/revB.
@@ -2213,7 +2213,7 @@ public IList<GitStash> GetStashes()
return stashes;
}

public Patch GetSingleDiff(string @from, string to, string fileName, string oldFileName, string extraDiffArguments, Encoding encoding, bool cacheResult, bool isTracked=true)
public Patch GetSingleDiff(string @firstRevision, string secondRevision, string fileName, string oldFileName, string extraDiffArguments, Encoding encoding, bool cacheResult, bool isTracked=true)
Copy link
Member

Choose a reason for hiding this comment

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

@ could be dropped

@RussKie RussKie added this to the 2.51.RC2 milestone Jan 11, 2018
@RussKie
Copy link
Member

RussKie commented Jan 12, 2018

Squash and good to go

@gerhardol gerhardol merged commit 2ebbf0e into gitextensions:master Jan 12, 2018
@gerhardol gerhardol deleted the feature/n4301-diff-argument-consistency branch January 12, 2018 21:17
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.

None yet

2 participants