[git-users] which commit ever change FULL_OPTIMIZATION in this file
Hi experts, lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git blame -c meta/conf/bitbake.conf 9cb71137 meta/conf/bitbake.conf (Khem Raj 2011-03-17 16:54:30 -0700 524) FULL_OPTIMIZATION = -O2 -pipe ${DEBUG_FLAGS} lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git show 9cb71137 commit 9cb7113790d716a4c5cf7d511535ba87fdecd1ac Author: Khem Raj raj.k...@gmail.com Date: Thu Mar 17 16:54:30 2011 -0700 .. ## # Optimization flags. ## - -FULL_OPTIMIZATION = -fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2 -ggdb -feliminate-unused-debug-types -DEBUG_OPTIMIZATION = -O -fno-omit-frame-pointer -g +DEBUG_FLAGS ?= -g -feliminate-unused-debug-types -feliminate-dwarf2-dups +FULL_OPTIMIZATION = -O2 -pipe ${DEBUG_FLAGS} +DEBUG_OPTIMIZATION = -O -fno-omit-frame-pointer ${DEBUG_FLAGS} -pipe SELECTED_OPTIMIZATION = ${@bb.data.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][bb.data.getVar('DEBUG_BUILD', d, 1) == '1'], d, 1)} -BUILD_OPTIMIZATION = -O2 +BUILD_OPTIMIZATION = -O2 -pipe git blame tells me 9cb71137 ever change it .but it doesn't all the commit that change it ever, an help --
Re: [git-users] which commit ever change FULL_OPTIMIZATION in this file
On Tue, 22 Jan 2013 00:46:55 +0800 lei yang yanglei.f...@gmail.com wrote: lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git blame -c meta/conf/bitbake.conf 9cb71137 meta/conf/bitbake.conf (Khem Raj 2011-03-17 16:54:30 -0700 524) FULL_OPTIMIZATION = -O2 -pipe ${DEBUG_FLAGS} lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git show 9cb71137 [...] git blame tells me 9cb71137 ever change it .but it doesn't all the commit that change it ever, an help I fail to parse this question, so here are a couple of guesses. If you know the line containing FULL_OPTIMIZATION in the file of interest has been changed by more than one commit throughout the history of modification to this file, and you're puzzled about why `git blame` only shows you just one commit, then the question is: this is by design as `git blame` only shows the last commit changed each line in the file (as clearly stated in the manual). If you want to list all commits which made a modification touching a line containing the FULL_OPTIMIZATION substring in a specific file, you should instead use `git log` with its -S command-line option, like this: $ git log -F -SFULL_OPTIMIZATION -- meta/conf/bitbake.conf --
Re: [git-users] which commit ever change FULL_OPTIMIZATION in this file
seems not work for me lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git blame meta/conf/bitbake.conf |grep FULL_OPTIMIZATION 9cb71137 meta/conf/bitbake.conf (Khem Raj 2011-03-17 16:54:30 -0700 524) FULL_OPTIMIZATION = -O2 -pipe ${DEBUG_FLAGS} 2864ff6a meta/conf/bitbake.conf (Richard Purdie 2011-11-25 14:25:16 + 526) SELECTED_OPTIMIZATION = ${@d.getVar(['FULL_OPTIMIZATION', 'DEBUG_OPTIMIZATION'][d.getVar('DEBUG_BUILD', True) == '1'], True)} 5b9877aa meta/conf/bitbake.conf (Chris Larson 2011-11-16 14:17:21 -0700 527) SELECTED_OPTIMIZATION[vardeps] += FULL_OPTIMIZATION DEBUG_OPTIMIZATION lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ git log -F -SFULL_OPTIMIZATION -- meta/conf/bitbake.conf |grep 9cb71137 lyang001@lyang0-9010:~/kvm_32/layers/oe-core$ it can't get 9cb71137 Lei On Tue, Jan 22, 2013 at 1:26 AM, Konstantin Khomoutov flatw...@users.sourceforge.net wrote: FULL_OPTIMIZATION --