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

Clarify squashing working-copy commit #1980

Closed
wants to merge 1 commit into from

Conversation

ilyapoz
Copy link

@ilyapoz ilyapoz commented Aug 4, 2023

@google-cla
Copy link

google-cla bot commented Aug 4, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
@ilyagr
Copy link
Collaborator

ilyagr commented Aug 5, 2023

It might take some work to sync this with main after #1978. There's no perfect way since jj currently doesn't understand file moves.

Let me/us know if you'd like some help with that, or if you figure out a good way. You might want to do this after you fix all the things that need fixing.

One conjecture I have is that git rebase might actually work better than jj rebase in this case.

Another way I might try to do this would be to rebase your commit to main and look if the conflicted src/commands/mod.rs is readable. If not, I'd do jj restore src/commands/mod.rs --from before_that_PR. Either way, I'd then manually diff src/commands/mod.rs and whatever its new name is.

src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
src/commands/mod.rs Outdated Show resolved Hide resolved
@ilyapoz ilyapoz force-pushed the clarify-squash-docs branch 3 times, most recently from 5eb1c0c to 57189b4 Compare August 5, 2023 09:07
@ilyapoz
Copy link
Author

ilyapoz commented Aug 5, 2023

@ilyagr It's ok, I'm not full time jj user yet. This PR was created via guthub UI. I rebased it using git no problem. I've just started using jj for my personal project yesterday, I will keep it simple :)

I have good enough git expertise, recently I cherry-picked 1000 commits between two branches on my job :)))

cli/src/commands/mod.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

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

LGTM with the minor remaining suggestions fixed

cli/src/commands/mod.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
cli/src/commands/mod.rs Outdated Show resolved Hide resolved
@ilyapoz ilyapoz force-pushed the clarify-squash-docs branch from ed50e26 to 0db4f98 Compare September 4, 2023 15:36
@avamsi
Copy link
Collaborator

avamsi commented Sep 4, 2023

Also, please squash your incremental commit (and consider prefixing the original commit with cli: ), see https://github.com/martinvonz/jj/blob/main/docs/contributing.md#code-reviews.

@ilyapoz ilyapoz force-pushed the clarify-squash-docs branch from 0db4f98 to 5518f26 Compare September 4, 2023 15:39
@ilyapoz
Copy link
Author

ilyapoz commented Sep 5, 2023

How to fix formatting automatically? I ran cargo fmt but it does not work on my setup (brew). Sorry, I'm not familiar with rust

@ilyagr
Copy link
Collaborator

ilyagr commented Sep 5, 2023 via email

@ilyapoz ilyapoz closed this Jan 26, 2024
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.

4 participants