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 6762753
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:23:41+00:00 2026-05-26T14:23:41+00:00

When using git-svn, Git associates SVN revision with individual commits. Most of other team

  • 0

When using git-svn, Git associates SVN revision with individual commits.

Most of other team members quote SVN revisions when they want their code reviewed.
Is it possible to some how make Git ‘aware’ of the SVN revisions and implicitly convert them to Git hashes?
Or perhaps is there a way to expose the mapping between Git commits and SVN revisions, so that I can write myself a tool that could leverage that?

Ideally I would like to do something like:

$ git diff r12000 e0a4f09 # r12000 is SVN revision, e0a4f09 is Git hash
  • 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-05-26T14:23:42+00:00Added an answer on May 26, 2026 at 2:23 pm

    The git-svn tool has a conversion option to find the git object if by a SVN revision, or the other way around. This option can be used as follows:

    git svn find-rev rSVNID
    

    Thus, your diff command could be:

    git diff $(git svn find-rev r12000) e0a4f09
    

    As opposed to the other answer, this should also work with branches and tags.

    For further information, see the manpage of git-svn on this command.

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

Sidebar

Related Questions

I am using git-svn (from cygwin) and I've done several git commits on my
I want to access a repository using both GIT and SVN clients. A way
I have cloned a svn project repo using git-svn. When I fetch commits, how
I've been using git-svn for a while (everyone else on my team has been
I'm using git-svn; I typically create a topic branch, make commits to it, then
I'm using git-svn to store a staging version of some SVN repo, where other
I want to clone a SVN tree into a git repo using git-svn. I'd
I am using git-svn with the following workflow now git clone <SVN TRUNK URL>
I am using git-svn for our svn repository. However, the repo is huge, so
I'm using git-svn to interact with a remote svn repsitory that follows the traditional

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.