git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Best way to specify all local branches and all remote branches.
@ 2008-02-11 18:51 Paul Gardiner
  2008-02-11 19:10 ` Jakub Narebski
  0 siblings, 1 reply; 6+ messages in thread
From: Paul Gardiner @ 2008-02-11 18:51 UTC (permalink / raw)
  To: git

New to git, and often finding it hard to specify the correct
refs for a command. Here's an example where I was converting
all the files in all the commits from unix line endings to
DOS line endings. You can see I've ended up using cd and ls.
I'm sure there must be a better way.

$ cd /home/public/tmp/git/
$ yes |rm -r vdos32
$ git clone /export/git/vdos32.git vdos32
$ cd vdos32/
$ for f in `(cd /export/git/vdos32.git/refs/heads; ls)|sed -e
    '/master/d' -e '/origin/d'`; do git fetch origin $f:$f; done
$ git-filter-branch --tag-name-filter cat --tree-filter 'find . -type f
    ! -name \*.gif ! -name \*.ico|xargs unix2dos -q' `(cd
    .git/refs/heads;ls)`



With git-filter-branch, I'm surprised I can't use --all.
The docs suggest that A --not B is permitted. I've
also seen refs/heads/* used in the docs but never
managed to get it to work. Most greatful for any
advice.

P.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-02-11 21:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-11 18:51 Best way to specify all local branches and all remote branches Paul Gardiner
2008-02-11 19:10 ` Jakub Narebski
2008-02-11 19:40   ` Paul Gardiner
2008-02-11 20:23   ` Johannes Schindelin
2008-02-11 21:00     ` Paul Gardiner
2008-02-11 21:34       ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).