I have a library "Google" that I keep in a separate GIT repository.
This library is used in some projects. The problem is that I want to rename the library to match the naming convention of these projects, e.g. "Service_Google".
Since PHP doesn't allow for automagic refactoring, the best way I've come up with is to do the following.
...
I have a py file like this, which errors out.
from world import acme
def make_stuff_happen():
acme.account.foo() # Works
acme.subscription.bar() # FAIL: "module 'object' has no attribute 'subscription'"
make_stuff_happen()
But this works!
from world import acme
from world.acme import subscription
def make_stuff_hap...
Here's part of the contents of my .gitmodules file:
[submodule "src/static_management"]
path = src/static_management
url = git://github.com/eykd/django-static-management.git
[submodule "external/pyfacebook"]
path = external/pyfacebook
url = http://github.com/sciyoshi/pyfacebook.git
However, .git/config ...
I need something akin to submodules, but which exist outside the main repository as a dependency.
Here's the problem:
I'm trying to use Git (in a REALLY awkward way) to manage design files for a CAD tool (Cadsoft Eagle), and I'm having a hard time figuring out if there is a way to use git submodules to manage each project's dependenc...
I have a directory structure as follows:
| main.py
| scripts
|--| __init__.py
| script1.py
| script2.py
| script3.py
From main.py, the module scripts is imported. I tried using pkgutils.walk_packages in combination with __all__, but using that, I can only import all the submodules directly under main using from scripts import...
Apologies in advange for the newbie question. I can't get my head around this, and the docs don't help!
Consider the following directory structure:
spam.py
foo / __init__.py
ham.py
eggs.py
with the following code:
# __init__.py
# blank
# ham.py
print( "got ham!" )
# eggs.py
print( "got eggs, importing ham!"...
I've two or more projects (let's call them ProjectFoo and ProjectBar) having some common code that I put in a submodule.
My understanding is that if I commit changes to a submodule from within ProjectFoo it'll be in a detached head that only all ProjectFoo clones can see:
(master) $ cd ProjectFooBarCommoneSubmodule/
(master) $ git comm...
I'm having trouble figuring out how to structure Perl modules in an object oriented way so I can have one parent module with a number of submodules and only the specific submodules that are needed would be loaded by a calling script. For example I want to be able to make method calls like so:
use Example::API;
my $api = Example::API...
Hi
I have several (about 10-15) Git repositories in a directory:
~/plugins/admin
~/plugins/editor
~/plugins/etc
Each have their own separate repository and remote server.
The problem is that to pull all the changes from all the repositories I have to:
cd ~/plugins/admin
git pull origin master
password: ********
cd ..
cd ~/plugins/...
I've been trying to move away from submodules in order to get a self-contained repository, and the subtree merge strategy seems to match this use-case.
However the merged repos' histories appear in my own project's history, which is reather annoying.
I've tried git filter-branch --subdirectory-filter path/to/subtree/ HEAD which works.....
Yii Doc:
Modules can be nested in unlimited
levels. That is, a module can contain
another module which can contain yet
another module. We call the former
parent module while the latter child
module. Child modules must be declared
in the modules property of their
parent module, like we declare modules
in the applicati...
Is it possible to create a submodule that does not link to a repository directly, but to a directory inside it?
For example, let fw.git be a framework repository, with these dirs:
|fw.git
\---|test
|code
|tools
I'd like to submodule the framework code, just the code directory, not other directories.
...
My problem is that I have a bunch of different capistrano recipes and code snippets that I use across multiple projects. My local file structure is a folder called helper-snibbits with folders under that called ./capistrano, ./php-bits, and .py-bits
I can track each snippet individually with a repo but that becomes hard to manage on the...
Is there a way, short of actually checking out the parent commit, to determine a submodule's SHA-1 commit ID based on a commit ID in the parent clone? I know I can find the currently associated SHA-1 with 'git submodule'.
Here's an example: I have a clone with a single submodule 'foo' that has changed several times in the last month. I ...
I'm having trouble figuring out how to change my mindset to git and have run in to the following problem. I have the situation where we have a shared engine and multiple projects that use the engine. Internal development teams and second party teams may be working on projects that use the shared engine, and want to be using HEAD of the s...
Hey guys. There is capistrano but that only works for ssh servers, which a lot of our clients aren't. We also make use of git submodules extensively. What is the best way you know of deploying git projects (with submodules) to FTP servers?
I've tried Beanstalk and Springloops v2 but they are both falling quite short. Beanstalk often fai...