* git-svn and empty directories
@ 2008-12-16 12:53 Thomas Jarosch
2008-12-21 7:08 ` Eric Wong
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Jarosch @ 2008-12-16 12:53 UTC (permalink / raw)
To: Eric Wong, Deskin Miller; +Cc: git
Hello Eric and Deskin,
I'm currently looking into preserving empty directories from a SVN repository
by automatically creating empty .gitignore files for them.
The control flow of the git-svn code is still a jungle to me,
maybe you have a hint how to implement a proof-of-concept code?
I don't think I can just touch a .gitignore file in get_untracked()
and those files will magically turn up in git's index...
Thanks,
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-svn and empty directories
2008-12-16 12:53 git-svn and empty directories Thomas Jarosch
@ 2008-12-21 7:08 ` Eric Wong
2008-12-22 8:58 ` Thomas Jarosch
0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2008-12-21 7:08 UTC (permalink / raw)
To: Thomas Jarosch; +Cc: Deskin Miller, git
Thomas Jarosch <thomas.jarosch@intra2net.com> wrote:
> Hello Eric and Deskin,
>
> I'm currently looking into preserving empty directories from a SVN repository
> by automatically creating empty .gitignore files for them.
>
> The control flow of the git-svn code is still a jungle to me,
> maybe you have a hint how to implement a proof-of-concept code?
>
> I don't think I can just touch a .gitignore file in get_untracked()
> and those files will magically turn up in git's index...
Hi Thomas,
Modern git-svn never touches the working tree during fetch, it hashes
objects into the database and adds those to the indexes directly.
However, I don't think your proposal is a good idea since it adds too
much "magic". Complex special cases for delta application if the
.gitignore gets real content and backwards-incompatibility since I know
some git-svn users already rely on pushing .gitignore files (empty or
otherwise) to an upstream SVN repo.
The minor problem of missing empty directories isn't big enough to be
worth the trouble IMHO.
The unhandled.log is made to be machine parseable, so if somebody really
wanted to recreate empty direct after checkout, they could write a
script that parses it and creates it based on the history of the current
working tree.
--
Eric Wong
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: git-svn and empty directories
2008-12-21 7:08 ` Eric Wong
@ 2008-12-22 8:58 ` Thomas Jarosch
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Jarosch @ 2008-12-22 8:58 UTC (permalink / raw)
To: Eric Wong; +Cc: Deskin Miller, git
Hello Eric,
On Sunday, 21. December 2008 08:08:54 Eric Wong wrote:
> Modern git-svn never touches the working tree during fetch, it hashes
> objects into the database and adds those to the indexes directly.
Ok
> However, I don't think your proposal is a good idea since it adds too
> much "magic". Complex special cases for delta application if the
> .gitignore gets real content and backwards-incompatibility since I know
> some git-svn users already rely on pushing .gitignore files (empty or
> otherwise) to an upstream SVN repo.
>
> The minor problem of missing empty directories isn't big enough to be
> worth the trouble IMHO.
Ok, this seems to be too much effort to fix. I manually added the directories
to my HEAD version and really hope I don't have to ever checkout
and build something from the past *fingers crossed* :-)
Cheers,
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-12-22 9:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-16 12:53 git-svn and empty directories Thomas Jarosch
2008-12-21 7:08 ` Eric Wong
2008-12-22 8:58 ` Thomas Jarosch
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).