From: Michael J Gruber <git@drmicha.warpmail.net>
To: Jack Desert <jackdesert556@gmail.com>
Cc: Tomas Carnecky <tom@dbservice.com>, git@vger.kernel.org
Subject: Re: GIT counterpart to "svn list"
Date: Thu, 22 Apr 2010 09:41:59 +0200 [thread overview]
Message-ID: <4BCFFDC7.4050205@drmicha.warpmail.net> (raw)
In-Reply-To: <20100421223716.6526f625@pennie-farthing>
Jack Desert venit, vidit, dixit 22.04.2010 05:37:
> El Thu, 22 Apr 2010 05:24:48 +0200
> Tomas Carnecky <tom@dbservice.com> escribió:
>> On 4/22/10 5:22 AM, Jack Desert wrote:
>>>
>>> I'm new to GIT, and the one command I can't live without is:
>>> svn list
>>> Is ther a GIT couterpart to svn list?
>>
>> We're all clueless about how svn works, or what svn list does. Can you
>> enlighten us please?
>>
>> tom
>>
>
> "svn list" displays which files and folders in the current directory are under version control. It's helpful in figuring out which files you still need to add to the repository. Attached is sample output from one of my directories under subversion souce control.
Now, that statement is about as true as Tomas' about "all" people's
svn-cluelessness here ;)
svn list [URL[@REV]] lists the files and directories of the repo URL at
revision rev, rev defaulting to the head revision, URL defaulting to the
repo URL of ".".
So, even without URL, it does not look at the files and folders of the
current directory at all (besides .svn to find the repo URL). In
particular, it does not tell you anything about untracked files and is
(by itself) useless for figuring out what to add. svn status is used for
that. Instead, svn list tells you which files and folders are under
version control at "." in the repo, but not limited to the the contents
of your cwd.
git ls-files does what svn list (without URL) does, and more. But git
status [-s] may be what you are really looking for, if you're interested
in tracked versus untracked files.
Now, svn list URL is something that git does not really do, because it
tries to do as much as possible locally, not on the server side. But
that is not the svn list incantation you asked about ;)
Cheers,
Michael
next prev parent reply other threads:[~2010-04-22 7:45 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 3:22 GIT counterpart to "svn list" Jack Desert
2010-04-22 3:24 ` Tomas Carnecky
2010-04-22 3:37 ` Jack Desert
2010-04-22 3:45 ` Alexander Iljin
2010-04-22 3:47 ` Tomas Carnecky
2010-04-22 7:41 ` Michael J Gruber [this message]
2010-04-22 10:44 ` Alex Riesen
2010-04-22 8:56 ` Santi Béjar
2010-04-22 11:51 ` Git - SVN Crash Course Petr Baudis
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=4BCFFDC7.4050205@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=jackdesert556@gmail.com \
--cc=tom@dbservice.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.