Skip to content

Commit d5ec2ba

Browse files
tidy-devhaykam821
andauthored
we -> you
Co-authored-by: haykam821 <[email protected]>
1 parent de6858f commit d5ec2ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/learn-more/unreachable-commits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Now, if we create a new branch called `feature-branch` from `C` and commit `D` a
3030
In the above example, `B` is reachable by `F` through the ancestral path of `F`-> `C` -> `B`, and `B` is reachable by `E` through `E` -> `D` -> `C` -> `B`. However, there is no such path to get to `E` or `D` from `F`. Thus, `E` and `D` are **unreachable** from `F`.
3131

3232
## Git Commands Use the Ancestral Path
33-
Some Git commands use the ancestral path to determine what to show. One of those is `git diff`, which is used to see the changes between two commits non inclusive of the first commit. If we execute `git diff A..C`, we will receive the set of changes from the commits along the ancestral path from `C` to `A` or `C` -> `B` -> `A`. Thus, we would see changes from `B` and `C`. Likewise, if we executed `git diff B..F`, you will get changes from reachable from `F`; thus, `F` -> `C` -> `B`. But, not changes from `E` and `D` as they are unreachable.
33+
Some Git commands use the ancestral path to determine what to show. One of those is `git diff`, which is used to see the changes between two commits non inclusive of the first commit. If we execute `git diff A..C`, we will receive the set of changes from the commits along the ancestral path from `C` to `A` or `C` -> `B` -> `A`. Thus, we would see changes from `B` and `C`. Likewise, if we executed `git diff B..F`, we will get changes from reachable from `F`; thus, `F` -> `C` -> `B`. But, not changes from `E` and `D` as they are unreachable.
3434

3535
## Merge Commits
3636
Now, let's say that we merge the `feature-branch` into our `main` branch. Our graph becomes:

0 commit comments

Comments
 (0)