From: Jakub Narebski <jnareb@gmail.com>
To: "Rob (gmail)" <robvanb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: New to Git / Questions about single user / multiple projects
Date: Wed, 19 Aug 2009 14:18:07 +0200 [thread overview]
Message-ID: <200908191418.08838.jnareb@gmail.com> (raw)
In-Reply-To: <a2db4dd50908190400x1cbb1506sa38c60e31587f49d@mail.gmail.com>
Please do not toppost, and when responding cull the quoted part,
so only those parts that are relevant to your reply are remaining.
On Wed, 19 Aug 2009, Rob wrote:
> Thanks all for all the answers :)
>
> One last question based on the multiple projects issue:
> Is there a command that lists all your projects ?
>
> My initial thought is that there probably isn't, as there is no
> relation between the project except the userID ?
No, there no git commands for listing all your projects. BTW. you can
use different identities for different projects by setting it
in .git/config, i.e. in per-repository configuration file.
Simple solution, which finds only non-bare repositories, and which
can find false positives:
$ find ~ -name ".git" -type d -print
More complicated solution, used by gitweb, requires Perl, not checked
that it works correctly, doesn't work with ancient repositories with
symlink HEAD.
$ perl -e '
use File::Find qw(find);
my @list = ();
find({follow_fast => 1, follow_skip => 2, dangling_symlinks => 0,
wanted => sub {
return if (m!^[/.]$!);
return unless (-d $_);
push @list, $_ if -e "$_/HEAD"
}});
print join("\n", @list)."\n";
'
--
Jakub Narebski
Poland
next prev parent reply other threads:[~2009-08-19 12:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 1:52 New to Git / Questions about single user / multiple projects Rob (gmail)
2009-08-19 2:24 ` Changsheng Jiang
2009-08-19 4:14 ` Chris Packham
2009-08-19 4:00 ` Daniel Barkalow
2009-08-19 7:59 ` Jakub Narebski
2009-08-19 11:00 ` Rob (gmail)
2009-08-19 12:18 ` Jakub Narebski [this message]
2009-08-19 12:28 ` Rob (gmail)
2009-08-19 12:49 ` Jeff King
2009-08-19 12:48 ` Jeff King
2009-08-19 13:20 ` Jakub Narebski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200908191418.08838.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=robvanb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).