how can i see changes in merge request?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 450
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
i try to use diff to check source_branch and target_branch last commit, at first, it seemed like everything was normal
but when i try to use revert, diff will keep the revert changes in
my steps:
- create
aaain master - create branch
dev - create
bbbin dev - create merge
dev -> master - merged it and revert it
- create
cccin dev - create merge
dev -> masteragain
follow this steps, i can't use diff in here, i check diff in this source and target branch last commit, it have 'bbb' and 'ccc' in the same time, but if i try it in git bash, it only have 'ccc'
i was use repo.diff_tree_to_tree and diff.deltas().enumerate()
i don't know is it something wrong with my code, or it really can't use diff in here, please get some suggestions, thank you.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the described branch, merge, revert, and second-merge sequence, then inspect the behavior of repo.diff_tree_to_tree and diff.deltas().enumerate(). Compare the resulting deltas with Git Bash for the same source and target commits; done means determining whether the discrepancy is expected or a reproducible git2-rs bug.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100