<p>The diff is between the most recent commit and the start of the branch. It's not just the diff of the last commit, it's every commit (stacked on top of each other) since the branch's origins. </p>

<p>If that weren't the case, it'd be nigh impossible to provide meaningful feedback to a code review for a branch's pull request.</p>

CC BY-SA 4.0
2020-01-17T01:12:29.363Z
2020-01-17T01:12:29.363Z
Flater
<p>My students currently submit their code in Bitbucket and create a pull request. Bitbucket has a code review tool that allows me to create comments tied to specific lines in the code. I really like this. However, it only lets me comment on the diff, so I can only comment on code in the most recent commit. I want to be able to comment on the entire source file. Is there a tool that lets me do that in a similar fashion? </p>

CC BY-SA 4.0
2020-01-17T21:08:42.910Z
At least on github, you can add comments to any line of a file (in a commit, and probably a PR if you « expand the diff » to see more)
D. Ben Knoble
CC BY-SA 4.0
2020-01-17T22:58:17.630Z
As you seem to be, successfully, using git. It would be nice if you can provide some help with this question https://cseducators.stackexchange.com/q/2897/204
ctrl-alt-delor
CC BY-SA 4.0
2020-01-18T15:36:57.193Z
Why can't you just do a merge or pull request with the comments in the code itself. Then as the students develop the code they can remove the comments. Also maybe the students should take your comments, convert them in to *TODO* comments and then use that as a guide.
Guy Coder
<grading>
Putting feedback comments on source code when grading
# Putting feedback comments on source code when grading

(Asked by: username_0 on 2020-01-16)

My students currently submit their code in Bitbucket and create a pull request. Bitbucket has a code review tool that allows me to create comments tied to specific lines in the code. I really like this. However, it only lets me comment on the diff, so I can only comment on code in the most recent commit. I want to be able to comment on the entire source file. Is there a tool that lets me do that in a similar fashion?

**Tags:** grading

> **Comments:**
> **username_1**: At least on github, you can add comments to any line of a file (in a commit, and probably a PR if you « expand the diff » to see more)  
> **username_2**: As you seem to be, successfully, using git. It would be nice if you can provide some help with this question https://cseducators.stackexchange.com/q/2897/204  
> **username_3**: Why can't you just do a merge or pull request with the comments in the code itself. Then as the students develop the code they can remove the comments. Also maybe the students should take your comments, convert them in to *TODO* comments and then use that as a guide.  

---

## 1 answers

### Answer by username_4 on 2020-01-17. Score: 1

The diff is between the most recent commit and the start of the branch. It's not just the diff of the last commit, it's every commit (stacked on top of each other) since the branch's origins.

If that weren't the case, it'd be nigh impossible to provide meaningful feedback to a code review for a branch's pull request.


---

