From: Masahiro Yamada Date: Mon, 9 Jun 2014 02:16:34 +0000 (+0900) Subject: scripts: objdiff: get the path to .tmp_objdiff more simply X-Git-Tag: omap-for-v3.16/fixes-against-rc1~27^2~6 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd6e12423311697860f30d10398a0f9eb91977d2;p=pandora-kernel.git scripts: objdiff: get the path to .tmp_objdiff more simply This commit is a minor refactoring. Temporary files for objdiff are stored in .tmp_objdiff directory which is located at the top directory. To get the path to this directory, SRCTREE=`git rev-parse --show-toplevel` TMPD=$SRCTREE/.tmp_objdiff seems easier to understand than GIT_DIR=`git rev-parse --git-dir` TMPD=${GIT_DIR%git}tmp_objdiff Besides, it is not always necessary to create .tmp_objdiff dicrectory. It should be created only for "record" command. Signed-off-by: Masahiro Yamada Acked-by: Jason Cooper Signed-off-by: Michal Marek --- Reading git-diff-tree failed