Hi Arnt,


On 12/20/2015 02:21 PM, Arnt Karlsen <[email protected]> wrote:
On Sun, 20 Dec 2015 13:02:28 +0100, aitor_czr wrote in message
<[email protected]>:

>You can generate a patch in the parent directory by the following way:
>
>$ git diff --relative > ../aitor_czr-20.2.2015.patch
...or $ git diff --relative > ../aitor_czr-$(date +%FT%T-%Z).patch
oooooooooooooooooor ;o)  $ git diff --relative > \
../aitor_czr-$(git log |head -n1 |cut -d" " -f2)-$(date +%FT%T-%Z).patch


This generates a patch named:

aitor_czr-2015-12-20T16:34:19-CET.patch

ooooooooooooor ;o)

aitor_czr-f1b0bdff4e61d3425ccdd425d2452c8b3c346df4-2015-12-20T16:12:25-CET.patch

Here, $(git log |head -n1 |cut -d" " -f2) is the bizarre hash of 40 digits content in:

 .git/refs/heads/master [*]

Thanks,

   Aitor.

[*] This is being in the master branch.


_______________________________________________
Dng mailing list
[email protected]
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng

Reply via email to