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

git diff with v2 #161

Closed
nph4rd opened this issue Feb 22, 2020 · 3 comments
Closed

git diff with v2 #161

nph4rd opened this issue Feb 22, 2020 · 3 comments

Comments

@nph4rd
Copy link

nph4rd commented Feb 22, 2020

As suggested here getting a diff works fine with v1, but not with v2. Was this overlooked? How could one get a diff with v2?

#160 seems to indicate that this can be done by fetching first. Could one get a git diff without fetching previously?

@ericsciple
Copy link
Contributor

ericsciple commented Feb 24, 2020

V2 was optimized to fetch the single commit. Proposal here for additional control over which refs are fetched.

cclauss added a commit to cclauss/checkout that referenced this issue Mar 1, 2020
actions#161 and many other posts say that doing `git diff` was easy in v1 but is tricky in v2.
Can we please add two items to README.md that describes how to properly do `git diff` in v2?
@ericsciple
Copy link
Contributor

Also scenarios in readme for fetching more branches/history

@ericsciple
Copy link
Contributor

related to #155

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

No branches or pull requests

2 participants