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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:24:58+00:00 2026-05-27T03:24:58+00:00

I have been reorganizing some code and would like to use a program to

  • 0

I have been reorganizing some code and would like to use a program to verify that the diff consists of only matching pairs of additions and deletions. I am using git as source control so hopefully there is something built into git that can do this for me? It would also be very useful if it could summarize lines that have either appeared or dissapeared


Does anybody know if there is such a tool?

  • 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-27T03:24:59+00:00Added an answer on May 27, 2026 at 3:24 am

    As prusswan says – I do not think a tool exists currently. But git can detect renames and it should not be hard to detect changes to a file. The -M option also git to try and detect renames rather than just doing a delete/add diff.

    git diff -M 18b5850a07bb
    diff --git a/G b/G
    index e69de29..d0a432b 100644
    --- a/G
    +++ b/G
    @@ -0,0 +1 @@
    +This is a change
    diff --git a/A b/H
    similarity index 100%
    rename from A
    rename to H
    diff --git a/B b/I
    similarity index 100%
    rename from B
    rename to I
    diff --git a/C b/J
    similarity index 100%
    rename from C
    rename to J
    diff --git a/D b/K
    similarity index 100%
    rename from D
    rename to K
    diff --git a/E b/L
    similarity index 100%
    rename from E
    rename to L
    diff --git a/F b/M
    similarity index 100%
    rename from F
    rename to M
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have been looking at the MVC storefront and see that IQueryable is returned from
I have been looking into IKVMing Apache's FOP project to use with our .NET
Have been using a simple CSS only tooltip. Working Example css: .tip { position:relative;
I have been sharing database variables using the following code: Namespace DataAccessVariables Public Class
I have been running some small tests in PHP on loops. I do not
Have been fighting this for two days and am very frustrated but feel like
It has been about a year since I wrote any .dll plugins that use
Have been wondering about this for days now: I have a basic wxpython program
Have been trying to find the error in one line of code. Return expected
I have been doing some java development lately and have started using Eclipse. For

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.