Comments (4)
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.
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.
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.
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)
- would git-cc work properly when cleartool diff is reconfigured? HOT 1
- Unable to initialize gitcc HOT 3
- Changing a symlink into a file in git causes ClearCase checkin to fail HOT 1
- Can I use the program on Linux redhat? HOT 2
- Does the program "git-cc" support python 3.5 HOT 1
- gitcc label erroring out HOT 25
- git-cc fails in subprocess.py HOT 7
- Unable to understand workflow. Where to use git init and where to use gitcc init? HOT 2
- zest.releaser upgrade? HOT 2
- Applying clearcase labels to git commits? HOT 15
- Capturing deleted file history? HOT 6
- git cc rebase - nothing happens HOT 5
- Error during gitcc rebase HOT 1
- Does git-cc support Git to CC HOT 2
- clearcase
- DEBUG in common.py dealt as str after loaded from config file HOT 1
- Only master Branch is creating while migrating but unable to create other branches HOT 1
- Only CC main branch code is migrated for all the branches. HOT 4
- Documentation questions HOT 6
- Version History not reflecting on Git platform HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-cc.