Marcus Müller a.k.a. "Tethpub ZNeK"
crack-admin/coderâ„¢

some git configs actually make my life easier

13.12.2016

It's no secret I really like git. One thing that makes my life a lot easier (when updating the FreeBSD ports collection):

root@muller:(/usr/ports)# git config -l|grep rebase
pull.rebase=preserve
rebase.autostash=true
root@muller:(/usr/ports)# cat .git/hooks/post-rewrite
#!/bin/sh

make fetchindex
pkg audit -F

This gives:

root@muller:(/usr/ports)# git pull
remote: Counting objects: 106, done.
remote: Compressing objects: 100% (44/44), done.
remote: Total 106 (delta 67), reused 101 (delta 62), pack-reused 0
Receiving objects: 100% (106/106), 13.15 KiB | 0 bytes/s, done.
Resolving deltas: 100% (67/67), completed with 37 local objects.
From https://github.com/freebsd/freebsd-ports
   c440eadc97f9..7ec109239da2  master          -> origin/master
   3e2306d018d8..a5be89a0bc7c  branches/2016Q4 -> origin/branches/2016Q4
   df1009e990c8..ecf2bebd10b8  svn_head        -> origin/svn_head
/usr/ports/INDEX-10.bz2                       100% of 1999 kB  192 kBps 00m10s
vulnxml file up-to-date
0 problem(s) in the installed packages found.
Successfully rebased and updated refs/heads/master.