git/list[1] front-page[2] threads[3] people[4] search[5] about
 

RE: how to arrange source control?

From
JDJohn Dlugosz <jdlugosz@tradestation.com>
Date
Apr 27, 2009, 22:08 UTC
Message-ID
<450196A1AAAE4B42A00A8B27A59278E70AE3EC2C@EXCHANGE.trad.tradestation.com>
>> what is the best way to use git? Should I run "git add ." in
'rootdir' or run it in each 
>> application and library?
>> These libraries are used by all of the applications.
I had a similar issue I discussed on this mailing list a few weeks ago.

If the apps really are separate apps, from a development perspective, you will want each in a separate repository. That way you are not always being bothered by totally irrelevant changes by others.

But, git doesn't like the libraries arranged that way. If you make each library a git submodule, they will all be in a subdirectory under each app, not a peer with them. This does have the advantage that each app could be using a different version of the libs. If they are meant to be released as a suite, you will still find that handy during development, while waiting for the ripple effect to catch up to the top level after something changes in a lib.

I've not taken it to its logical conclusion of libs that use other libs which are also used directly by the app.

If you keep your existing directory structure, you can certainly make each lib its own repository, and not rely on git to track specific library versions for you. But I think that will bite you when you need to check out something old, such as to make a patch for an existing version or compare behavior against an older version.

--John (please forgive the footer; it's not my idea or my choice)

TradeStation Group, Inc. is a publicly-traded holding company (NASDAQ GS: TRAD) of three operating subsidiaries, TradeStation Securities, Inc. (Member NYSE, FINRA, SIPC and NFA), TradeStation Technologies, Inc., a trading software and subscription company, and TradeStation Europe Limited, a United Kingdom, FSA-authorized introducing brokerage firm. None of these companies provides trading or investment advice, recommendations or endorsements of any kind. The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
  If you received this in error, please contact the sender and delete the material from any computer.
Next: John Dlugosz
Message 1 of 2 in “RE: how to arrange source control?”
  1. John DlugoszApr 27, 2009
  2. John DlugoszApr 28, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.