{"shas":[["7e237620518c9c45d49be1dbdd57757af86c9659","0135fcc047f75af264c800977a73e353c6ba842d@gmail.com","gitconfig: add git reset-permissions\n\nAn alias to reset those files in the working directory that only have\npermission changes.\n\nContext, and my reply:\n\n    On 12/23/2010 01:49 AM, Ruud H.G. van Tol wrote:\n    > I found that my git_tree/users still had the same issue,\n    > and had many more filenames with embedded spaces,\n    > so adapted the one-liner to cope with that:\n    >\n    > git diff --name-status | perl -lane'\n    > ($fn)= /^M\\s+(.*)/;\n    > $res= qx{git diff \"$fn\" 2>&1};\n    > if ($res=~/old mode (\\d+)/) {\n    > my $mode= substr($1,-4);\n    > chmod oct($mode), $fn;\n    > print qq{Fixed mode of \"$fn\" to $mode\\n};\n    > }\n    > '\n\n    FWIW I posted a one-liner here 10 days ago that dealt with that,\n    but nobody seemed to notice since the discussion steamrolled on :)\n\n    Anyway, here's a more efficient way to do it using\n    git-checkout. And this time it'll also deal with filenames that\n    contain double quotes:\n\n        git diff --numstat | awk '{if ($1 == \"0\" && $2 == \"0\") print }' | cut -c 5- | perl -pe 's/\\n/\\0/g' | xargs -0 git checkout HEAD\n\n    Stick this in your .gitconfig to use it as \"git reset-permissions\":\n\n    [alias]\n        reset-permissions = \"!f() { git diff --numstat | awk '{if ($1 == \\\"0\\\" && $2 == \\\"0\\\") print }' | cut -c 5- | perl -pe 's/\\\\n/\\\\0/g' | xargs -0 git checkout HEAD; }; f\"\n\n    That cut/perl could probably be replaced by making awk only print\n    out fields as of $3 and stick a \\0 instead of a \\n at the end. But\n    my Awk-fu isn't strong enough to know how.","Ævar Arnfjörð Bjarmason"],["ce6551069f63cd4e3d419e16461cc811a5a0c03a","0135fcc047f75af264c800977a73e353c6ba842d@gmail.com","gitconfig: switch \"git review\" back to using for + show\n\nI can't properly operate my pager or something, when I do p and n I\nkeep going back to the beginning of the file if I browse around.","Ævar Arnfjörð Bjarmason"],["44ffb0cc5a6831e6c55d055261533a7f81e99f20","0135fcc047f75af264c800977a73e353c6ba842d@gmail.com","gitconfig: use \"git show --stat -p -M\" instead of \"git show -M\"","Ævar Arnfjörð Bjarmason"],["5acb9c8abf64fe2ae4fa8003a8264bf49e99e523","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","gtk-bookmarks: add www bookmark","Ævar Arnfjörð Bjarmason"],["1fa27a7bc33bcab2b0cb3a94e11490e999be91a9","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","gtk-bookmarks: add Bluetooth","Ævar Arnfjörð Bjarmason"],["b6821592d7c58ba3542ae08dae0c6b8df7f81a81","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","screenrc: add \"zombie dr\" everywhere","Ævar Arnfjörð Bjarmason"],["1403fc919aa568e85e0865ab5df1a8f549212aa5","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","screenrc: use ar not dr for abort/retry","Ævar Arnfjörð Bjarmason"],["a7d1d9d521525b1cfff906039a946461241fac88","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","screenrc: zombie only onerror","Ævar Arnfjörð Bjarmason"],["91449b6f9180657e5f9bd49dbeac1e732c742d41","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com",".bashrc: move my PS1 setting to its own file","Ævar Arnfjörð Bjarmason"],["94fbb6900ee7fba0bc6590f83e460e5a702ed93c","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","bashrc + ssh: add remote-ssh to .ssh/bin\n\nIt's simpler to have this self-contained in dotfiles than have it in\nmisc-scripts.","Ævar Arnfjörð Bjarmason"],["5a99db419a6094cbdd1c45d31efef0973f878e27","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com",".bashrc.d: include my copy of git-completion.bash\n\nRetrieved from https://github.com/git/git/raw/next/contrib/completion/git-completion.bash","Ævar Arnfjörð Bjarmason"],["54b0aa99b04c64ac993df017cb5a4cf617a8828f","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","Revert \"screenrc: zombie only onerror\"\n\nThis reverts commit 02c610b339398ce917775cd5b3070c95b7f8b489.\n\nThis doesn't work on the ancient Red Hat machines at work.","Ævar Arnfjörð Bjarmason"],["9c164b42734a08e01db785daa749e656f40264d2","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","Revert \"Revert \"screenrc: zombie only onerror\"\"\n\nThis reverts commit e06c01fd385f707ed234cc83b9626b022575b27e.\n\nI compiled 4.0.3 on the KVM so I can use \"onerror\" again.\n\n    wget http://w.nix.is/~avar/01CVS.dpatch (from debian/patches)\n    patch -p1 < 01CVS.dpatch\n    ./configure --prefix=/usr/local\n    make\n    sudo make install","Ævar Arnfjörð Bjarmason"],["e02f208741dd70f988abfe62730dd495de6788e8","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com","irssi: nuke obsolete facebook script\n\nI'm no longer there, and bitlbee now has this feature (sort of)","Ævar Arnfjörð Bjarmason"],["bdbf4974aef98b3ad77431a944a0056953c3d2c9","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com",".gitconfig: don't verify ssl traffic due to github fail\n\n    mc01eventcron-01 ~ (master=) $ export http_proxy=http://webproxy.lhr1.activehotels.net:3128\n    mc01eventcron-01 ~ (master=) $ export https_proxy=http://webproxy.lhr1.activehotels.net:3128\n    mc01eventcron-01 ~ (master=) $ git pull\n    error: SSL certificate problem, verify that the CA cert is OK. Details:\n    error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing https://github.com/avar/dotfiles.git/info/refs\n\n    fatal: HTTP request failed\n\nI have no idea if the root cause of this is related to our systems or\nto github.","Ævar Arnfjörð Bjarmason"],["0d3a9914d0bdf1462464a3e183ced9234525c7fc","f778dc48c8231247a1047065f1e32f5b82fc7224@booking.com",".screenrc.d: don't do flow before I actually create windows\n\nYou can't call \"flow\" before you have windows, you only have \"defflow\"\nfor that.","Ævar Arnfjörð Bjarmason"],["84e17b2e80891220cc54bc5504928baf665e53d5","0135fcc047f75af264c800977a73e353c6ba842d@gmail.com","git-completion.bash: bump version\n\nDownloaded from https://github.com/git/git/raw/next/contrib/completion/git-completion.bash again","Ævar Arnfjörð Bjarmason"],["fd3ba11c74aeaae4b9b493344e843d7e85e193b8","0135fcc047f75af264c800977a73e353c6ba842d@gmail.com",".bashrc.d/ps1.sh: unset GIT_PS1_SHOWUNTRACKEDFILES\n\nThis is a major cause of slowdowns:\n\n    111308180507.433317467 (-173) + '[' true = false ']'\n    1111308180507.435212712 (-395) + git rev-parse --is-inside-work-tree\n    111308180507.438142225 (-167) + '[' true = true ']'\n    111308180507.439635484 (-166) + '[' -n '' ']'\n    111308180507.441121277 (-156) + '[' -n yes ']'\n    111308180507.442588012 (-155) + git rev-parse --verify refs/stash\n    111308180507.450323043 (-152) + '[' -n yes ']'\n    1111308180507.452143504 (-379) + git ls-files --others --exclude-standard\n    *wait*\n    111308180518.326212660 (-151) + '[' -n '' ']'\n    111308180518.327753950 (-146) + '[' -n auto ']'\n    111308180518.329225605 (-145) + __git_ps1_show_upstream\n    111308180518.330760744 (-107) + local key value\n\nRetrieved by doing:\n\n    export PS4='$(date \"+%s.%N ($LINENO) + \")'\n\nUnder a -x bash shell.","Ævar Arnfjörð Bjarmason"]],"ref":"refs/heads/master","size":18,"head":"fd3ba11c74aeaae4b9b493344e843d7e85e193b8","push_id":35117105}