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

Re: Adding Git to Better SCM Initiative : Comparison

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 10, 2007, 15:47 UTC
Message-ID
<m34peqtuuj.fsf@roke.D-201>
In-Reply-To
<87ve76mwos.fsf@mid.deneb.enyo.de>
Florian Weimer <fw@deneb.enyo.de> writes:
> * Jakub Narebski:
> > @@ -214,6 +225,13 @@ <title>File and Directories Copies</title>
[...]
> > +                <s id="git">
> > +                    Yes (or no depending on interpretation). Git
> 
> This should be "No." (same for copies below).

I would agree to "N/A" or "Partial", but with 'git log --follow' implemented at least for single file I wouldn't say that that git doesn't support file and directories renames (copies). It does, in it's own fashion, using rename (copy) detection instead of rename (copy) tracking.

By the way, the explanation for "File and Directories Copies" section
itself is a bit imprecise; well at least it doesn't lead to easy
answer for git.  I took it as question if we can examine _history_
of a file (or directory) across renames (copies).  Other
interpretation would be if version control system in question
correctly handles renames and copies during merges... but it is in
TODO (Add intelligent merging of renamed paths.)
 
Show 7 quoted lines
> > +                <s id="git">
> > +                    Partial (?). It is possible to lock down repository
> > +                    (access to branches and tags) using hooks.
> > +                </s>
> 
> I doubt this works reliably.  You still can access data once you've got
> its SHA1 hash, for instance.

So what? The data is not visible, so it is as if it didn't exist. Besides if you are truly paranoid you can I think remove downloaded pack.

By the way the default 'contrib/hooks/update-paranoid' implements ACL restricting access to branches and tags, but I think that you can write a hook which would refuse update if there are changes outside specified subdirectory for example.

Note however that "repository permissions" are much more important for centralized SCMs than for distributed SCMs, where you can form "network of trust" (like Linus with his kernel's lieutenants and subsystem maintainers).

Show 9 quoted lines
> > +                <s id="git">
> > +                    Yes. Changesets are supported.<br />
> > +                    Actually Git is snapshot based which means Git records
> > +                    the full state in every commit.  This means that any two
> > +                    commits can be compared directly very quickly, although the
> > +                    repository is typically browsed as a series of changesets.
> > +                </s>
> 
> I don't think this explanation is necessary.  What does Subversion say?
Subversion has the following currently:
  Partial support. There are implicit changeset that are generated on
  each commit.
Well, we could follow Mercurial, Monotone and Darcs and simply write
+                <s id="git">
+                    Yes. Changesets are supported.
+                </s>
Show 7 quoted lines
> > +                <s id="git">
> > +                    Yes. (git blame, git gui blame).
> > +                    It can also detect the origin of copied and moved source
> > +                    lines, and can ignore whitespace changes.
> > +                </s>
> 
> A simple "Yes." should suffice.

Each SCM names the command for displaying line-wise file history, if it of course exists.

While "can ignore whitespace changes" is not that important, detection
of contents movement and copying is important differentiation,
possible (or at least implemented) because Git uses rename detection
rather than rename tracking.
 
Show 10 quoted lines
> > @@ -636,6 +677,10 @@ <title>Tracking Uncommited Changes</title>
> >                      Yes, using "darcs whatsnew".
> >                  </s>
> >                  <s id="aegis">Yes. Using aediff</s>
> > +                <s id="git">
> > +                    Yes, of course. Using git diff.
> > +                    Note that git uses staging area for commits (index).
> > +                </s>
> 
> Simply "Yes.".  "git diff" is wrong, it's actually "git diff HEAD".

Actually it depends on the definition of "uncommitted changes". Besides "git diff HEAD" _is_ "using git diff".

But it's true that 'of course' there is not needed.
Show 11 quoted lines
> > @@ -681,6 +726,11 @@ <title>Per-File Commit Messages</title>
> >                  <s id="darcs">
> >                      No.
> >                  </s>
> > +                <s id="git">
> > +                    No.  The message applies to the commit as a whole.
> > +                    But you can tag (with description) given contents
> > +                    of a file (blob).
> > +                </s>
> 
> Have we got any real tool support for this?  This should be "No.".

True. But I'd rather leave it as "No. The message applies to the commit as a whole." because that is important property.

Show 10 quoted lines
> > @@ -1006,6 +1075,13 @@ <title>Command Set</title>
> >                      but since the model is different most commands are
> >                      unique.
> >                  </s>
> > +                <s id="git">
> > +                    Tries to follow CVS conventions, but deviates where there
> > +                    is a different design (following BitKeeper for DVCS).
> 
> I don't think this is true.  Is there any command that closely matches
> what CVS does?
Yes: init, add, annotate (alias to blame), checkout, commit, diff,
status, log, version. At least in principle, if not in output format.

I don't think that Mercurial and Monotone follow CVS much better than Git. (But that was one of answers I was having problems with.)

Show 11 quoted lines
> > @@ -1203,6 +1286,11 @@ <title>Portability</title>
> >                      Very good. Supports many UNIXes, Mac OS X, and Windows,
> >                      and is written in a portable language.
> >                  </s>
> > +                <s id="git">
> > +                    Good to very good.  Portable across all POSIX systems.
> > +                    There exists Win32 binary using MinGW (msysGit),
> > +                    or you can use binary provided by Cygwin.
> > +                </s>
> 
> Isn't Windows support still a bit lacking in terms of performance?
That is more a problem with Windows, than Git ;-)
-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Florian WeimerNext: Florian Weimer
Message 8 of 17 in “Adding Git to Better SCM Initiative : Comparison”
  1. Jakub NarebskiDec 10, 2007
  2. Eyvind BernhardsenDec 10, 2007
  3. Jakub NarebskiDec 10, 2007
  4. David KastrupDec 10, 2007
  5. Florian WeimerDec 10, 2007
  6. Johannes SchindelinDec 10, 2007
  7. Florian WeimerDec 10, 2007
  8. Jakub NarebskiDec 10, 2007
  9. Florian WeimerDec 10, 2007
  10. Linus TorvaldsDec 10, 2007
  11. Chris ShoemakerDec 10, 2007
  12. Jakub NarebskiDec 10, 2007
  13. Jakub NarebskiJan 13, 2008
  14. Dmitry PotapovJan 14, 2008
  15. Jakub NarebskiJan 14, 2008
  16. Dmitry PotapovJan 14, 2008
  17. Jakub NarebskiJan 14, 2008

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.