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

  • Home
  • SEARCH
  • 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 8623603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:19:17+00:00 2026-06-12T07:19:17+00:00

I was wondering how to get git to allways show you the full file

  • 0

I was wondering how to get git to allways show you the full file in a git diffrather than only showing the hunks.

So I first went with the -Woption but I read that this actually tries to be clever and tries to find the function context of the change. I don’t want git to be clever. I want git to be dead simple and only show me the full file with the changes.

So I finally figured out that you can add -U9999999 and now I am like WTF!? and wonder what kind of crazy hack this is and why it’s not documented anywhere?

  • 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-12T07:19:18+00:00Added an answer on June 12, 2026 at 7:19 am

    git diff -U9999999 means “do a unified diff and show 9,999,999 lines of context for each hunk.” It is documented; git help diff shows:

           -U<n>, --unified=<n>
               Generate diffs with <n> lines of context instead of the usual
               three. Implies -p.
    

    Of course, if you have a file with more than 9,999,999 lines between differing regions, this won’t actually show the whole file, but for all practical purposes, it will always show the whole thing.

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

Sidebar

Related Questions

I am wondering how javascripts get included in a jsp - can we put
I was wondering how to get this to run. In my application I have
I am wondering how to get the Json value ?(from below JSOn I would
Hi I have setup the following jsFiddle http://jsfiddle.net/a9ugu/2/ I am wondering why I get
I'm currently learning clojure, but I was wondering how to get and store user
Wondering if I could get some advice and direction on this following requirement: Need
Wondering if there is any way to get the lambda expressions that result from
Just wondering when do you actually use $.get(index); I am a bit confused on
Just wondering if there is any way to get the NS records in C#.
Just wondering whether anyone knows how to get blogger labels into alt tags in

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.