From 5e778f7c8d1ecf3d8f11385db013af2ba026e2a5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 22 Aug 2009 18:56:06 +0200 Subject: global: convert indentation-TABs to spaces Transformed via this shell code: t=$'\t' git ls-files \ | grep -vE '(^|/)((GNU)?[Mm]akefile|ChangeLog)|\.(am|mk)$' \ | grep -vE 'tests/pr/|help2man' \ | xargs grep -lE "^ *$t" \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' --- HACKING | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'HACKING') diff --git a/HACKING b/HACKING index cfcd05d59..928f0c504 100644 --- a/HACKING +++ b/HACKING @@ -437,8 +437,8 @@ Miscellaneous useful git commands its SHA1 and then tag it or cherry-pick it onto an existing branch. For example, run this: git fsck --lost-found HEAD && cd .git/lost-found/commit \ - && for i in *; do git show $i|grep SOME_IDENTIFYING_STRING \ - && echo $i; done + && for i in *; do git show $i|grep SOME_IDENTIFYING_STRING \ + && echo $i; done The "git fsck ..." command creates the .git/lost-found/... hierarchy listing all unreachable objects. Then the for loop print SHA1s for commits that match via log or patch. -- cgit v1.2.3-54-g00ecf