git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[CFH] Remotes conversion script

From
Petr Baudis <pasky@suse.cz>
Date
Sep 24, 2006, 21:21 UTC
Message-ID
<20060924212142.GB20017@pasky.or.cz>
  Hi,
  if someone is currently bored, it would be very nice to have a
conversion script for converting remotes/ to [remote] .config sections
(unless I missed it and someone already did such a great thing).
  I think about supporting just the [remote] sections in Cogito since
they are much easier to handle than the remotes/ file format, but in
order to maintain reasonable degree of compatibility with current
repositories (even freshly cloned since git-clone still generates those
horrible things ;-) ) such a script would be a must... and since this is
not interesting strictly for Cogito only, I hoped that perhaps some core
Git people would be interested to help here.
  PS: It would be nice if Git, when writing remote records during clone,
would note "this is supposed to just cover all the remote branches".
While Git does not support it now, in cg-fetch I would like to support
automatically picking up new branches in case you cloned all the
branches initially, but I need to distinguish the case when you are
interested in just a fixed set of those. BTW, I want to also remove gone
branches, but in line with the Git paranoia I'll just move the refs to
refs/remotes/*/.attic/ and let the user shoot at will.
  Thanks,
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)
Next: Jakub Narebski
Message 1 of 14 in “[CFH] Remotes conversion script”
  1. Petr BaudisSep 24, 2006
  2. Jakub NarebskiSep 24, 2006
  3. Johannes SchindelinSep 24, 2006
  4. Jakub NarebskiSep 24, 2006
  5. Jakub NarebskiSep 24, 2006
  6. SantiSep 24, 2006
  7. Johannes SchindelinSep 24, 2006
  8. Petr BaudisSep 24, 2006
  9. SantiSep 24, 2006
  10. Petr BaudisSep 24, 2006
  11. Jakub NarebskiSep 24, 2006
  12. Petr BaudisSep 24, 2006
  13. Jakub NarebskiSep 24, 2006
  14. Petr BaudisSep 24, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.