Git Product home page Git Product logo

Comments (4)

charleso avatar charleso commented on August 22, 2024

Hi Dolanor,

Not to sound negative, but I'm not sure I understand the motivation for this. What benefit does this have over the normal Git dir + working tree setup?

I suppose I'm slightly worried that you might be trying to mix the Clearcase and Git directories up?

Charles

from git-cc.

dolanor avatar dolanor commented on August 22, 2024

My need is that I ran git init at the top of the clearcase view. And I wanted that all the objects/pack/ref should be saved in another filesystem.
I don't know if it was good or bad to run the git init here, but that's what I did.
And to achieve the other "git directory" trick, I used the git-dir and work-tree.

Right now, I won't need to develop, it is just to see if the history can be imported successfully. But if it works, I need to stay in that directory tree which is the mount of my view, because legacy code, oldies, hard coded path and all the stuff that make you want to kill yourself ;)

from git-cc.

charleso avatar charleso commented on August 22, 2024

Yeah, that's what I suspected. You're going to run into all sorts of problems with this approach, or at least not get the full benefits of git-cc. For example you won't be able to use Git local branching if you stay within in the Clearcase view. Even more annoying, and this is the part that really drove me spare with Clearcase, you'll still have to checkout/checkin files with Clearcase, which is so sloooowwwwww. If you use a separate Git directory you won't have to worry about this any more, and you can push your changes back to Clearcase when you're ready.

I realise that using Git directly may not be an option if you have hard coded paths, although I would highly recommended investigating if that can be hacked/fixed locally. If you don't mind me asking, how much would need to be changed? What kind of paths are we talking, and shouldn't they be relative? Alternatively, could you change the mount directory of Clearcase and move your Git view in place of the Clearcase one?

For now I'm afraid you'll have to keep the git-cc directory separate. There are far too many places where I rely on a mutable filesystem. Hopefully for now it should just be a simple matter of moving the current .git directory somewhere else, and running 'git reset --hard HEAD'? After that you will need to run git-cc commands from there. If you didn't provide an absolute URL for 'git-cc init' you will also need to update the '.git/gitcc' config file - but that doesn't affect what you've already imported. If you really want to run git commands from within Clearcase after the import, you can still use 'git-dir' to point to the git-cc repo from within Clearcase. Although you'll be missing out on all the fun... ;-)

from git-cc.

dolanor avatar dolanor commented on August 22, 2024

Ok, thanks for the explanation. I will try to update the readme so it is more understandable to use that system in that fashion :)

from git-cc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.