git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* In search of a version control system
@ 2012-10-08 18:06 Maurice Francois
  2012-10-08 18:24 ` Ramkumar Ramachandra
  0 siblings, 1 reply; 8+ messages in thread
From: Maurice Francois @ 2012-10-08 18:06 UTC (permalink / raw)
  To: git@vger.kernel.org

Hi,

My thesis supervisor asked me to find a VCS. He wants to version-controlled all his projects.


The needs are not that big, that is to say it is academic and research projects. A project can have dozens of 
Word, PDF and program files (Stata do-files, SAS programs, SPPS syntaxe 
files and R scripts) and their corresponding log files.

Like many people, I hesitate between Git and Subversion. I like the idea of distributed version control system. But is that such a system eliminates the need for a real server ? Can we just set up a repository on one of the computers in our workplace and give access to that repository via a local connection or via a remote VPN connection ? 

We do not need to work at the same time on a file. The work is not so intense. So, is it possible to lock a file while someone work on it ?

Thanks, 

François Maurice
Candidat à la maîtrise
Département de sociologie
Université de Montréal      

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

* Re: In search of a version control system
  2012-10-08 18:06 In search of a version control system Maurice Francois
@ 2012-10-08 18:24 ` Ramkumar Ramachandra
  2012-10-08 18:30   ` Matthieu Moy
  0 siblings, 1 reply; 8+ messages in thread
From: Ramkumar Ramachandra @ 2012-10-08 18:24 UTC (permalink / raw)
  To: Maurice Francois; +Cc: git@vger.kernel.org

Hi Maurice,

Maurice Francois wrote:
> The needs are not that big, that is to say it is academic and research projects. A project can have dozens of
> Word, PDF and program files (Stata do-files, SAS programs, SPPS syntaxe
> files and R scripts) and their corresponding log files.

Note that Git wasn't designed for big binary files, and doesn't
perform well between them.

> Like many people, I hesitate between Git and Subversion.

I honestly cannot comprehend why someone would choose Subversion over
Git for a fresh repository today.

> I like the idea of distributed version control system. But is that such a system eliminates the need for a real server ? Can we just set up a repository on one of the computers in our workplace and give access to that repository via a local connection or via a remote VPN connection ?

Yes, you can have a "blessed" server, just like in Subversion.  And
yes, you can access it over git://, http://, https://, or ssh://.

> So, is it possible to lock a file while someone work on it ?

No, and I honestly think it's a bad idea.  Read up more about Git, and
try to understand how people work with it.

Ram

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

* Re: In search of a version control system
  2012-10-08 18:24 ` Ramkumar Ramachandra
@ 2012-10-08 18:30   ` Matthieu Moy
  2012-10-09  3:19     ` David Aguilar
  0 siblings, 1 reply; 8+ messages in thread
From: Matthieu Moy @ 2012-10-08 18:30 UTC (permalink / raw)
  To: Ramkumar Ramachandra; +Cc: Maurice Francois, git@vger.kernel.org

Ramkumar Ramachandra <artagnon@gmail.com> writes:

>> So, is it possible to lock a file while someone work on it ?
>
> No, and I honestly think it's a bad idea.

If you work on non-mergeable files (e.g. *.doc files. There are merge
tools for MS Word and LibreOffice, but my experience with them was not
really pleasant), then file locking is indeed not such a bad idea.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

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

* Re: In search of a version control system
  2012-10-08 18:30   ` Matthieu Moy
@ 2012-10-09  3:19     ` David Aguilar
  2012-10-09  5:58       ` Matthieu Moy
  0 siblings, 1 reply; 8+ messages in thread
From: David Aguilar @ 2012-10-09  3:19 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: Ramkumar Ramachandra, Maurice Francois, git@vger.kernel.org

On Mon, Oct 8, 2012 at 11:30 AM, Matthieu Moy
<Matthieu.Moy@grenoble-inp.fr> wrote:
> Ramkumar Ramachandra <artagnon@gmail.com> writes:
>
>>> So, is it possible to lock a file while someone work on it ?
>>
>> No, and I honestly think it's a bad idea.
>
> If you work on non-mergeable files (e.g. *.doc files. There are merge
> tools for MS Word and LibreOffice, but my experience with them was not
> really pleasant), then file locking is indeed not such a bad idea.

gitolite to the rescue:

http://sitaramc.github.com/gitolite/locking.html

If you want to setup a git server, look at gitolite.
It's really easy and slick.

I would advise against the file locking, though.  You ain't gonna need it ;-)
-- 
David

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

* Re: In search of a version control system
  2012-10-09  3:19     ` David Aguilar
@ 2012-10-09  5:58       ` Matthieu Moy
  2012-10-21 12:20         ` Drew Northup
  0 siblings, 1 reply; 8+ messages in thread
From: Matthieu Moy @ 2012-10-09  5:58 UTC (permalink / raw)
  To: David Aguilar; +Cc: Ramkumar Ramachandra, Maurice Francois, git@vger.kernel.org

David Aguilar <davvid@gmail.com> writes:

> I would advise against the file locking, though. You ain't gonna need
> it ;-)

What do you suggest to merge Word files?

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

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

* Re: In search of a version control system
  2012-10-09  5:58       ` Matthieu Moy
@ 2012-10-21 12:20         ` Drew Northup
  2012-10-21 13:16           ` Nguyen Thai Ngoc Duy
  2012-10-21 13:25           ` Sitaram Chamarty
  0 siblings, 2 replies; 8+ messages in thread
From: Drew Northup @ 2012-10-21 12:20 UTC (permalink / raw)
  To: Matthieu Moy
  Cc: David Aguilar, Ramkumar Ramachandra, Maurice Francois,
	git@vger.kernel.org

On Tue, Oct 9, 2012 at 1:58 AM, Matthieu Moy
<Matthieu.Moy@grenoble-inp.fr> wrote:
> David Aguilar <davvid@gmail.com> writes:
>
>> I would advise against the file locking, though. You ain't gonna need
>> it ;-)
>
> What do you suggest to merge Word files?

If the files are in the DOCX format you can just expand them as zip
archives and diff what's inside of them. The text in particular is
stored as XML.

-- 
-Drew Northup
--------------------------------------------------------------
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59

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

* Re: In search of a version control system
  2012-10-21 12:20         ` Drew Northup
@ 2012-10-21 13:16           ` Nguyen Thai Ngoc Duy
  2012-10-21 13:25           ` Sitaram Chamarty
  1 sibling, 0 replies; 8+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2012-10-21 13:16 UTC (permalink / raw)
  To: Drew Northup
  Cc: Matthieu Moy, David Aguilar, Ramkumar Ramachandra,
	Maurice Francois, git@vger.kernel.org

On Sun, Oct 21, 2012 at 7:20 PM, Drew Northup <n1xim.email@gmail.com> wrote:
> On Tue, Oct 9, 2012 at 1:58 AM, Matthieu Moy
> <Matthieu.Moy@grenoble-inp.fr> wrote:
>> David Aguilar <davvid@gmail.com> writes:
>>
>>> I would advise against the file locking, though. You ain't gonna need
>>> it ;-)
>>
>> What do you suggest to merge Word files?
>
> If the files are in the DOCX format you can just expand them as zip
> archives and diff what's inside of them. The text in particular is
> stored as XML.

An XML diff means nothing to a regular user, and manually "merging"
this way can produce unreadable Words files. So no, it's still not an
answer.
-- 
Duy

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

* Re: In search of a version control system
  2012-10-21 12:20         ` Drew Northup
  2012-10-21 13:16           ` Nguyen Thai Ngoc Duy
@ 2012-10-21 13:25           ` Sitaram Chamarty
  1 sibling, 0 replies; 8+ messages in thread
From: Sitaram Chamarty @ 2012-10-21 13:25 UTC (permalink / raw)
  To: Drew Northup
  Cc: Matthieu Moy, David Aguilar, Ramkumar Ramachandra,
	Maurice Francois, git@vger.kernel.org

On Sun, Oct 21, 2012 at 5:50 PM, Drew Northup <n1xim.email@gmail.com> wrote:
> On Tue, Oct 9, 2012 at 1:58 AM, Matthieu Moy
> <Matthieu.Moy@grenoble-inp.fr> wrote:
>> David Aguilar <davvid@gmail.com> writes:
>>
>>> I would advise against the file locking, though. You ain't gonna need
>>> it ;-)
>>
>> What do you suggest to merge Word files?
>
> If the files are in the DOCX format you can just expand them as zip
> archives and diff what's inside of them. The text in particular is
> stored as XML.

You also need a merge driver that at least splits the "all in one
single very very long line" XML into different lines in some way.  I
don't think git can merge even text files if everything is on one line
in each file.  And even if you do this I don't think the result will
be a valid ODT etc file.

All in all, I prefer the locking that David mentioned [1].  And if
your users cannot be trained to check first (as that URL describes),
then you probably have to use a CVCS that supports some stronger form
of locking.

[1]: http://sitaramc.github.com/gitolite/locking.html

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

end of thread, other threads:[~2012-10-21 13:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-08 18:06 In search of a version control system Maurice Francois
2012-10-08 18:24 ` Ramkumar Ramachandra
2012-10-08 18:30   ` Matthieu Moy
2012-10-09  3:19     ` David Aguilar
2012-10-09  5:58       ` Matthieu Moy
2012-10-21 12:20         ` Drew Northup
2012-10-21 13:16           ` Nguyen Thai Ngoc Duy
2012-10-21 13:25           ` Sitaram Chamarty

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).