zit
15 years agoUser .zitignore file
Giuseppe Bilotta [Sat, 25 Oct 2008 08:10:31 +0000 (10:10 +0200)] 
User .zitignore file

All Zit repositories share the same ignore file containing the single '*'
glob, so we create one in the user directory and use that instead of wasting
one block per repo.

15 years agoCleaner initial repositories
Giuseppe Bilotta [Fri, 24 Oct 2008 19:59:37 +0000 (21:59 +0200)] 
Cleaner initial repositories

Typical Zit usage doesn't need most of the stuff that Git makes use of: hooks,
branches, tags etc. They are automatically recreated as needed anyway.

15 years agozit list supports .zit/* repos
Giuseppe Bilotta [Fri, 24 Oct 2008 12:09:22 +0000 (14:09 +0200)] 
zit list supports .zit/* repos

15 years agoAllow storage of repos inside .zit
Giuseppe Bilotta [Fri, 24 Oct 2008 11:56:50 +0000 (13:56 +0200)] 
Allow storage of repos inside .zit

Since tracking many files independently in the same directory would create a
large number of .*.git directories, we allow the use of a .zit subdirectory to
collect all repositories in.

The command 'zit init' without any arguments serves the purpose of creating
.zit/, and 'zit track somefile' will create .zit/somefile.git instead of
.somefile.git if .zit/ exists.

For all other commands, we do look for an existing .somefile.git if .zit/
exists but .zit/somefile.git does not.

15 years agozit-to-git command delegation fixes
Giuseppe Bilotta [Thu, 23 Oct 2008 16:06:14 +0000 (18:06 +0200)] 
zit-to-git command delegation fixes

Many git commands behave correctly at the repository level, so we remove the
$ZIT_FILE from the parameter list for most commands.

Some commands do need the filename, so for add and commit we add it back.

15 years agoRemove useless shift
Giuseppe Bilotta [Thu, 23 Oct 2008 14:54:30 +0000 (16:54 +0200)] 
Remove useless shift

15 years agoSimplify repository structure
Giuseppe Bilotta [Thu, 23 Oct 2008 14:44:42 +0000 (16:44 +0200)] 
Simplify repository structure

We abandon the .zit.file/.git idea to switch to a structure where the Git dir
is just .file.git, and the working tree is the current directory.

This has the advantage of not requiring non-portable and fragile hardlinks,
although it requires a rather drastic .file.git/info/exclude file to simulate
the one-file repository.

15 years agoDraft usage/help
Giuseppe Bilotta [Thu, 23 Oct 2008 00:23:14 +0000 (02:23 +0200)] 
Draft usage/help

15 years agoZit track = init, tracked = list
Giuseppe Bilotta [Wed, 22 Oct 2008 23:53:48 +0000 (01:53 +0200)] 
Zit track = init, tracked = list

15 years agoEarly bailout in case of missing filename
Giuseppe Bilotta [Wed, 22 Oct 2008 17:45:42 +0000 (19:45 +0200)] 
Early bailout in case of missing filename

15 years agoZit: delegate all other commands to git
Giuseppe Bilotta [Wed, 22 Oct 2008 17:40:41 +0000 (19:40 +0200)] 
Zit: delegate all other commands to git

15 years agoZit list command
Giuseppe Bilotta [Wed, 22 Oct 2008 17:38:44 +0000 (19:38 +0200)] 
Zit list command

15 years agoRefactor Zit init
Giuseppe Bilotta [Wed, 22 Oct 2008 17:05:46 +0000 (19:05 +0200)] 
Refactor Zit init

15 years agoRefactor Zit setup
Giuseppe Bilotta [Wed, 22 Oct 2008 17:04:42 +0000 (19:04 +0200)] 
Refactor Zit setup

15 years agoZit only works on files in the current directory
Giuseppe Bilotta [Wed, 22 Oct 2008 17:00:33 +0000 (19:00 +0200)] 
Zit only works on files in the current directory

15 years agoInitial commit
Giuseppe Bilotta [Wed, 22 Oct 2008 16:53:20 +0000 (18:53 +0200)] 
Initial commit