EnglishFrenchSpanish

Ad


OnWorks favicon

git-patch-id - Online in the Cloud

Run git-patch-id in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command git-patch-id that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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:

· 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;

· 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.

<patch>
The diff to create the ID of.

GIT


Part of the git(1) suite

Use git-patch-id online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    itop - ITSM  CMDB OpenSource
    itop - ITSM CMDB OpenSource
    IT Operations Portal: a complete open
    source, ITIL, web based service
    management tool including a fully
    customizable CMDB, a helpdesk system and
    a document man...
    Download itop - ITSM CMDB OpenSource
  • 2
    Clementine
    Clementine
    Clementine is a multi-platform music
    player and library organizer inspired by
    Amarok 1.4. It has a fast and
    easy-to-use interface, and allows you to
    search and ...
    Download Clementine
  • 3
    XISMuS
    XISMuS
    ATTENTION: Cumulative update 2.4.3 has
    been released!! The update works for any
    previous 2.x.x version. If upgrading
    from version v1.x.x, please download and
    i...
    Download XISMuS
  • 4
    facetracknoir
    facetracknoir
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 5
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 6
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • 7
    LMS-YouTube
    LMS-YouTube
    Play YouTube video on LMS (porting of
    Triode's to YouTbe API v3) This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/lms-y...
    Download LMS-YouTube
  • More »

Linux commands

  • 1
    2vcard
    2vcard
    2vcard - convert addressbooks to VCARD
    format ...
    Run 2vcard
  • 2
    2xml
    2xml
    xml2 - convert xml documents in a flat
    format 2xml - convert flat format into
    xml html2 - convert html documents in a
    flat format 2html - convert flat format
    i...
    Run 2xml
  • 3
    cpupower
    cpupower
    cpupower - Shows and sets processor
    power related values ...
    Run cpupower
  • 4
    cqrlog
    cqrlog
    CQRLOG - Advanced logging program for
    hamradio operators DESCRIPTION: CQRLOG
    is an advanced ham radio logger based on
    MySQL database. Provides radio control
    ba...
    Run cqrlog
  • 5
    gammu-smsd
    gammu-smsd
    gammu-smsd - SMS daemon for Gammu ...
    Run gammu-smsd
  • 6
    gammu
    gammu
    gammu - Does some neat things with your
    cellular phone or modem. ...
    Run gammu
  • More »

Ad