Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

git-patch-id(1) [suse man page]

GIT-PATCH-ID(1) 						    Git Manual							   GIT-PATCH-ID(1)

NAME
git-patch-id - Compute unique ID for a patch SYNOPSIS
git patch-id < <patch> DESCRIPTION
A "patch ID" is nothing but a SHA1 of the diff associated with a patch, with whitespace and line numbers ignored. As such, it's "reasonably stable", but at the same time also reasonably unique, i.e., two patches that have the same "patch ID" are almost guaranteed to be the same thing. IOW, you can use this thing to look for likely duplicate commits. When dealing with git diff-tree output, it takes advantage of the fact that the patch is prefixed with the object name of the commit, and outputs two 40-byte hexadecimal strings. The first string is the patch ID, and the second string is the commit ID. This can be used to make a mapping from patch ID to commit ID. OPTIONS
<patch> The diff to create the ID of. AUTHOR
Written by Linus Torvalds <torvalds@osdl.org[1]> DOCUMENTATION
Documentation by Junio C Hamano and the git-list <git@vger.kernel.org[2]>. GIT
Part of the git(1) suite NOTES
1. torvalds@osdl.org mailto:torvalds@osdl.org 2. git@vger.kernel.org mailto:git@vger.kernel.org Git 1.7.1 07/05/2010 GIT-PATCH-ID(1)

Check Out this Related Man Page

GIT-PATCH-ID(1) 						    Git Manual							   GIT-PATCH-ID(1)

NAME
git-patch-id - Compute unique ID for a patch SYNOPSIS
git patch-id [--stable | --unstable] DESCRIPTION
Read a patch from the standard input and compute the patch ID for it. A "patch ID" is nothing but a sum of SHA-1 of the file diffs associated with a patch, with whitespace and line numbers ignored. As such, it's "reasonably stable", but at the same time also reasonably unique, i.e., two patches that have the same "patch ID" are almost guaranteed to be the same thing. IOW, you can use this thing to look for likely duplicate commits. When dealing with git diff-tree output, it takes advantage of the fact that the patch is prefixed with the object name of the commit, and outputs two 40-byte hexadecimal strings. The first string is the patch ID, and the second string is the commit ID. This can be used to make a mapping from patch ID to commit ID. OPTIONS
--stable Use a "stable" sum of hashes as the patch ID. With this option: o Reordering file diffs that make up a patch does not affect the ID. In particular, two patches produced by comparing the same two trees with two different settings for "-O<orderfile>" result in the same patch ID signature, thereby allowing the computed result to be used as a key to index some meta-information about the change between the two trees; o Result is different from the value produced by git 1.9 and older or produced when an "unstable" hash (see --unstable below) is configured - even when used on a diff output taken without any use of "-O<orderfile>", thereby making existing databases storing such "unstable" or historical patch-ids unusable. This is the default if patchid.stable is set to true. --unstable Use an "unstable" hash as the patch ID. With this option, the result produced is compatible with the patch-id value produced by git 1.9 and older. Users with pre-existing databases storing patch-ids produced by git 1.9 and older (who do not deal with reordered patches) may want to use this option. This is the default. GIT
Part of the git(1) suite Git 2.17.1 10/05/2018 GIT-PATCH-ID(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

patch

Dear All , I have Sun Solaries 7 sparc server ... am runing perl , CGI , MD5 ... etc for new web mail am setting up . now i have to install the patch ( xyz.pl.patch ) against a perl file for ex. xxx.pl what exact command i have to use ,,, also i do not want to make damage for my system... (6 Replies)
Discussion started by: tamemi
6 Replies

2. Solaris

get installed patch list

Hello all is there any way to get installed patch list on Solaris ? thanks (1 Reply)
Discussion started by: umen
1 Replies

3. Linux

Daylight savings patch for Linux?

Is there a patch availible for the upcoming new daylight savings time ordeal? (4 Replies)
Discussion started by: shorty
4 Replies

4. Solaris

Patching SunOs How-to

Hi Folks, I new to SunOs, mostly used to HP-UX and AIX way of patching. I'm trying to bring my two 420R test blades to the same patch level as my two prod ones. I've been reading a lot on how to patch SunOs but I'm still not sure how to achieve this. Both prod boxes says SunOs 5.8 Generic Patch... (2 Replies)
Discussion started by: supergumby
2 Replies

5. AIX

location of patch IY26778

Hi, I am trying to locate and download the AIX patch IY26778, for 5.3. I tried searching the ibm sites ... Also tried IBM - Download Driver finder - United States with no joy Can anyone who has located this patch before direct me to the correct url. many thanks, Michael. (2 Replies)
Discussion started by: mlmckee
2 Replies

6. SuSE

FAILED during patching kernel sources

Hi all. I have an issue with kernel patching. My system: OpenSuse 10.2, kernel version: 2.6.18.2. I've downloaded the patch from kernel.org - 2.6.26. I've invoked the following command: "patch -p1 -f < patch-2.6.26" (-f - because some files are not exist. to automatically skip this issues).... (2 Replies)
Discussion started by: Vourhey
2 Replies

7. Solaris

How can i see kernel patch version?

Hello experts. How can i see kernel patch version? what are advantages applying that patch? Thanx in advance (5 Replies)
Discussion started by: younus_syed
5 Replies

8. HP-UX

How can I resume process ?

hi every body lock at this situation and tell me your advice i tried to install patch in hp-ux v2 i used swinstall -s /path to the patch every thing was good but during the installation network connection between the server and my labtob when i connect again to the server i tried to... (2 Replies)
Discussion started by: maxim42
2 Replies

9. OS X (Apple)

Am I really using my brews? [Homebrew]

I am a little confused here. I have git installed via homebrew but I'm not 100% sure if the git I am using in the terminal is the git I have installed via homebrew. In fact this goes for all packages which I have installed via homebrew. Looking at the below sequence of commands, do I need to... (2 Replies)
Discussion started by: michellepace
2 Replies

10. Linux

Happy Birthday Linux :)

The Linux kernel was originally created by Linus Torvalds, a Finnish computer science student, and first announced to the world on August 25, 1991-exactly 20 years ago today. At the time, Torvalds described his work as a "hobby" and contended that it would not be "big and professional" like the GNU... (2 Replies)
Discussion started by: itkamaraj
2 Replies

11. Shell Programming and Scripting

Add line after AND before two patterns like patch do

Hi all, I kwow there are many ways to insert string into a files all over the forum, but I need to make that process like patch do because in the same file I can have the same pattern in many locations, for that I need the send two patterns, one for "before" and another for the "after". I cannot... (2 Replies)
Discussion started by: neutralTTY
2 Replies

12. UNIX for Dummies Questions & Answers

Appling Patch to kernel

Hello everybody, I have downloaded kernel version 3.10.21 and the same version of patch. the question is do I need to apply this patch which is the same version of kernel or is it intended for lower versions of kernel. thanks a lot (1 Reply)
Discussion started by: Vit0_Corleone
1 Replies

13. Shell Programming and Scripting

Git diff exclude swapped lines

Hi, I am doing aws security group auditing every day to find the difference. I am using git to find the difference. But some times some security group rules order is changing up and down(swapping lines). So 'git diff' command gives this as a difference which i dont want(i need only new lines... (2 Replies)
Discussion started by: jobycxa
2 Replies

14. Solaris

Solaris bash vulnerability update

The patch blog has: https://blogs.oracle.com/patch/entry/solaris_idrs_available_on_mos information on dealing with bash 'shellshock' vulnerability. (3 Replies)
Discussion started by: jim mcnamara
3 Replies

15. War Stories

Linus Torvalds reply about Meltdown and Spectre.

Apologies if this is the wrong forum but... ...This is hard hitting stuff. LKML: Linus Torvalds: Re: x86/enter: Create macros to restrict/unrestrict Indirect Branch Speculation (5 Replies)
Discussion started by: wisecracker
5 Replies