2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | stupid git trick |
From: | Michael Davidsaver <[email protected]> |
To: | [email protected], PVData Developers <[email protected]> |
Date: | Mon, 23 Nov 2015 13:53:41 -0500 |
Today I came across a new (to me) simple way to track a file through
renames. It seems that "git log" at some point gained "--follow". So the following will print the filename for each commit touching it. (uniq removes duplicates) > $ git log --format='' --name-only --follow src/ioc/db/dbAccess.h | uniq > src/ioc/db/dbAccess.h > src/db/dbAccess.h |