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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:37:07+00:00 2026-06-11T08:37:07+00:00

If I run vc-diff when in an edited file of a git repro, I

  • 0

If I run vc-diff when in an edited file of a git repro, I git a new buffer that shows me way more than I expected. It marks every line of the HEAD version of the file as deleted, and every line of the working copy of the file as added, so basically I see two full versions of the file.

This is not very useful!

If I run git diff path\to\edited\file in dos, or in git bash, I get what I expect vc-diff to give me: a short diff with just the actually added and deleted lines.

I have magit installed and when I look at diffs in that I get the same problem.

This is on windows running the official windows binary of emacs 24.1.1.

  • 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-11T08:37:08+00:00Added an answer on June 11, 2026 at 8:37 am

    I would bet solid money you’ve changed your line endings accidentally in your editor, or have a core.autocrlf setting that’s changed them for you. In other words, it’s showing a diff because in one version, the lines end in CRLF; in the other, they end in just LF.

    I’d poke at your editor settings and see what git config --global core.autocrlf returns.

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

Sidebar

Related Questions

I would like that whenever I run git diff or git show it silently
when I run git diff FETCH_HEAD it lists a load of expected changes, since
I am very new to Python. I need to run diff.py(a python in built
I'm using Git Bash on Windows 7. When I run git diff , I
(git version 1.6.5.7) When I run git diff the output has a nice scope
Is it possible? Run a cvs diff in terminal at the project root that
I'm trying to run a diff between the current buffer and its savefile. Because
I use to git diff to generate patches that can be applied to remote
I run svn diff and have the content diff result in a text file.
Every time I run git diff, for each single changes I made, I get

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.