potiuk commented on PR #60194:
URL: https://github.com/apache/airflow/pull/60194#issuecomment-3721050873

   BTW. There is also another interesting thing I learned with `prek` 
   
   There is a very nice shortcut to not have to find `merge-base`.
   
   
   * `git diff main..your_pr_branch`
   * `git diff main...your_pr_branch`
   
   Spot the difference .... there are THREE dots in second case. And the ... is 
actually showing the changes in your branch from the `merge-base` 
   
   And ... there are few other gotchas: 
https://darekkay.com/blog/git-commit-ranges/#git-diff
   
   For example `git diff main...your-branch` is not reverse of `git diff 
your-branch...diff` as you would suspect. The first one shows **your** changes 
since merge-base, the second shows **SURPRISE** -> all the changes in `main` 
since `merge-base` 😱 😱 😱 😱 😱 😱 😱 😱 😱 
   
   Git is wild.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to