login
Header Space

 
 

Re: git filter-branch --subdirectory-filter

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: James Sadler <freshtonic@...>
Cc: <git@...>
Date: Friday, May 9, 2008 - 4:00 am

On Fri, May 09, 2008 at 05:38:12PM +1000, James Sadler wrote:


My understanding is that it should behave as B. E.g.:

  git init
  mkdir subdir1 subdir2
  echo content 1 >subdir1/file
  echo content 2 >subdir2/file
  git add .
  git commit -m initial
  echo changes 1 >>subdir1/file
  git commit -a -m 'only one'
  echo more changes 1 >>subdir1/file
  echo more changes 2 >>subdir2/file
  git commit -a -m 'both'
  git filter-branch --subdirectory-filter subdir1
  git log --name-status --pretty=oneline

should show something like:

  b119e21829b6039aa8fe938fb0304a9a7436b84d both
  M       file
  db2ad8e702f36a1df99dd529aa594e756010b191 only one
  M       file
  dacb4c2536e61c18079bcc73ea81fa0fb139c097 initial
  A       file

IOW, all commits touch subdir1/file, which becomes just 'file'.

It could be a bug in git-filter-branch. What version of git are you
using?

-Peff
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git filter-branch --subdirectory-filter, James Sadler, (Thu May 8, 9:01 pm)
Re: git filter-branch --subdirectory-filter, Jeff King, (Thu May 8, 9:33 pm)
Re: git filter-branch --subdirectory-filter, James Sadler, (Fri May 9, 3:38 am)
Re: git filter-branch --subdirectory-filter, Jeff King, (Fri May 9, 4:00 am)
Re: git filter-branch --subdirectory-filter, James Sadler, (Fri May 9, 11:31 pm)
Re: git filter-branch --subdirectory-filter, Jeff King, (Sat May 10, 1:53 am)
Re: git filter-branch --subdirectory-filter, James Sadler, (Sat May 10, 7:38 am)
Re: git filter-branch --subdirectory-filter, Jeff King, (Sat May 10, 7:44 am)
Re: git filter-branch --subdirectory-filter, James Sadler, (Sat May 10, 3:10 am)
Re: git filter-branch --subdirectory-filter, Johannes Sixt, (Fri May 9, 3:57 am)
speck-geostationary