diff

Apply patch to file that's under Git without using Git?

邮差的信 提交于 2020-03-06 08:58:07
问题 I checked out the latest OpenSSL from Git: git clone git://git.openssl.org/openssl.git One of the devs sent me a patch for AARCH64 to test: $ cat RT4237.diff diff --git a/crypto/ec/asm/ecp_nistz256-armv8.pl b/crypto/ec/asm/ecp_nistz256-armv8.pl index 9d1bce1..ce6b69e 100644 --- a/crypto/ec/asm/ecp_nistz256-armv8.pl +++ b/crypto/ec/asm/ecp_nistz256-armv8.pl @@ -1289,6 +1289,9 @@ $code.=<<___; stp $acc0,$acc1,[$rp_real,#$i] stp $acc2,$acc3,[$rp_real,#$i+16] ___ +$code.=<<___ if ($i == 0); + adr

Apply patch to file that's under Git without using Git?

被刻印的时光 ゝ 提交于 2020-03-06 08:57:53
问题 I checked out the latest OpenSSL from Git: git clone git://git.openssl.org/openssl.git One of the devs sent me a patch for AARCH64 to test: $ cat RT4237.diff diff --git a/crypto/ec/asm/ecp_nistz256-armv8.pl b/crypto/ec/asm/ecp_nistz256-armv8.pl index 9d1bce1..ce6b69e 100644 --- a/crypto/ec/asm/ecp_nistz256-armv8.pl +++ b/crypto/ec/asm/ecp_nistz256-armv8.pl @@ -1289,6 +1289,9 @@ $code.=<<___; stp $acc0,$acc1,[$rp_real,#$i] stp $acc2,$acc3,[$rp_real,#$i+16] ___ +$code.=<<___ if ($i == 0); + adr

Apply patch to file that's under Git without using Git?

我的未来我决定 提交于 2020-03-06 08:57:28
问题 I checked out the latest OpenSSL from Git: git clone git://git.openssl.org/openssl.git One of the devs sent me a patch for AARCH64 to test: $ cat RT4237.diff diff --git a/crypto/ec/asm/ecp_nistz256-armv8.pl b/crypto/ec/asm/ecp_nistz256-armv8.pl index 9d1bce1..ce6b69e 100644 --- a/crypto/ec/asm/ecp_nistz256-armv8.pl +++ b/crypto/ec/asm/ecp_nistz256-armv8.pl @@ -1289,6 +1289,9 @@ $code.=<<___; stp $acc0,$acc1,[$rp_real,#$i] stp $acc2,$acc3,[$rp_real,#$i+16] ___ +$code.=<<___ if ($i == 0); + adr

Is it possible to diff PowerPoint version-controlled with git?

旧街凉风 提交于 2020-02-18 05:19:31
问题 I have some PowerPoint documents that I keep version-controlled with git. I want to know what differences are between versions of a file. Text is most important, images and formatting not so much (at least not at this point). 回答1: I wrote this for use with git on the command-line (requires Python and the python-pptx library): """ Setup -- Add these lines to the following files: --- .gitattributes *.pptx diff=pptx --- .gitconfig (or repo\.git\config or your_user_home\.gitconfig) (change the

git diff between two different files

送分小仙女□ 提交于 2020-02-16 13:28:45
问题 In HEAD (the latest commit), I have a file named foo . In my current working tree, I renamed it to bar , and also edited it. I want to git diff foo in HEAD , and bar in my current working tree. 回答1: Check out the --find-renames option on git-diff at https://www.kernel.org/pub/software/scm/git/docs/git-diff.html Or specify the paths explicitly: git diff HEAD:full/path/to/foo full/path/to/bar (Credit goes to twaggs from Git: How to diff two different files in different branches?) 回答2: I believe

git diff between two different files

痴心易碎 提交于 2020-02-16 13:28:03
问题 In HEAD (the latest commit), I have a file named foo . In my current working tree, I renamed it to bar , and also edited it. I want to git diff foo in HEAD , and bar in my current working tree. 回答1: Check out the --find-renames option on git-diff at https://www.kernel.org/pub/software/scm/git/docs/git-diff.html Or specify the paths explicitly: git diff HEAD:full/path/to/foo full/path/to/bar (Credit goes to twaggs from Git: How to diff two different files in different branches?) 回答2: I believe

git diff between two different files

余生长醉 提交于 2020-02-16 13:25:03
问题 In HEAD (the latest commit), I have a file named foo . In my current working tree, I renamed it to bar , and also edited it. I want to git diff foo in HEAD , and bar in my current working tree. 回答1: Check out the --find-renames option on git-diff at https://www.kernel.org/pub/software/scm/git/docs/git-diff.html Or specify the paths explicitly: git diff HEAD:full/path/to/foo full/path/to/bar (Credit goes to twaggs from Git: How to diff two different files in different branches?) 回答2: I believe

What do the numbers on a Git Diff header mean? [duplicate]

扶醉桌前 提交于 2020-02-12 06:38:06
问题 This question already has answers here : What does the “@@…@@” meta line with at signs in svn diff or git diff mean? (3 answers) Closed 4 years ago . Every time I run git diff, for each single changes I made, I get some sort of header with numbers, for example: @@ -169,14 +167,12 @@ function Browser(window, document, body, XHR, $log) {..... I wonder what does the four numbers mean? I guess -169 means that this particular line of code that follows was originally in line 169 but now is in 167?

How do I view previous diff commits using Git?

我的未来我决定 提交于 2020-01-30 14:15:06
问题 How do I view previous diff commits using Git? I have a file that I've made several commits on, but I want to view previous versions of the file AND its diff's at different stages. Seeing where I made mistakes and how I fixed them is really helping my code. By the way, I'm using Tower as a GUI on top of Git. 回答1: git log --full-diff -p your_file_path Check out: http://git-scm.com/docs/git-log 回答2: You need git log . If you were interested in file SOMEFILE use $ git log -p SOMEFILE The -p

How do I view previous diff commits using Git?

China☆狼群 提交于 2020-01-30 14:14:32
问题 How do I view previous diff commits using Git? I have a file that I've made several commits on, but I want to view previous versions of the file AND its diff's at different stages. Seeing where I made mistakes and how I fixed them is really helping my code. By the way, I'm using Tower as a GUI on top of Git. 回答1: git log --full-diff -p your_file_path Check out: http://git-scm.com/docs/git-log 回答2: You need git log . If you were interested in file SOMEFILE use $ git log -p SOMEFILE The -p