Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:14:49+00:00 2026-06-07T19:14:49+00:00

When performing a code review my approach is to use meld to view the

  • 0

When performing a code review my approach is to use meld to view the changes to the branch:

Step 1. Using git log to find the sha1’s of the first and last commits on the branch

git log --graph --oneline --all

This will give something like:

    * fffffff Another commit to HEAD
    * eeeeeee A commit to HEAD
    | * ddddddd The last commit on branch MY_AWESOME_CHANGE
    | * ccccccc Some work
    | * bbbbbbb First commit on branch MY_AWESOME_CHANGE
    |/  
    * aaaaaaa Updated comments to explain aggregation of External Data

Step 2. Use git difftool to launch meld to view the changes

git difftool aaaaaaa ddddddd

My question is:
Is there a better way to go about step 1? The following question provides a way to find the branch start point: finding-a-branch-point-with-git. I can then use “git log” to find the sha1 for the last commit on the branch:

git log -1 MY_AWESOME_BRANCH

But it seems overkill and I wonder if I’m missing something simpler.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:14:51+00:00Added an answer on June 7, 2026 at 7:14 pm

    You can use the ... (triple-dot) syntax to git diff or git difftool, as in:

    git difftool master...experiment
    

    What this does is to show you the difference between:

    • The merge base of master and experiment
    • … and experiment

    The meanings of .. and ... are different for git log and git diff – this other answer of mine has some diagrams that show the difference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was performing a code review for a colleague and he had a regular
While performing code review, I found code that could cut down on potential bugs
I am currently performing unit tests on my code (using PHPUnit and Jenkins) but
To use code I have written for performing calculations, I need to read in
I am performing a code review (VS2008/.NET 3.5). The development team has created several
When performing many inserts into a database I would usually have code like this:
Are there any tools for performing static analysis of Scala code, similar to FindBugs
I am performing data changes on multiple databases, and I want to implement a
I used to use OpenC++ ( http://opencxx.sourceforge.net/opencxx/html/overview.html ) to perform code generation like: Source:
I have the following code, basically it is performing two operations. First one being

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.