Re: gitignore for projects

2020-05-26 Thread Mike Kerner via 4D_Tech
you can do private repos on github for free. there are other servies that do free private repos. i'm pretty sure gitlab does free private repos, too. if you're a google apps user you can use google cloud project repos. those are no extra charge. paying for a git service gets to be sticky

Re: gitignore for projects

2020-05-26 Thread Julio Carneiro via 4D_Tech
Well GitHub is free, and there is GitHub Desktop app, which is also free. Caveat is that it is public. Now if you need privacy, then Microsoft Azure is also free > On May 25, 2020, at 06:00, Paul Dennis via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > For those getting started with Git.

Re: gitignore for projects

2020-05-25 Thread Mike Kerner via 4D_Tech
I had a file mode (permissions) surprise with one of our projects. It's a project that is bring brought forward from 2k4->17->18 project So for those of you that run into this, you can do ``` git config core.fileMode false ``` Right now the *.gitignore* I'm using is thus: ``` #Inspired by Tom

Re: gitignore for projects

2020-05-25 Thread Paul Dennis via 4D_Tech
For those getting started with Git. Atlassian offer bitbucket for 10 USD a year and their GUI sourcetree is free of charge. Integrates with Jira and for small development teams is amazing value for money. Paul -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html

Re: gitignore for projects

2020-05-24 Thread James Crate via 4D_Tech
I went the other direction and excluded everything except what I wanted to include, since I end up with stuff in the folder with the 4D structure that I don’t want to track. I should add an ignore for the .DS_Store files too. I’ll add the Settings folder at some point too. # Ignore everything

Re: gitignore for projects

2020-03-19 Thread John DeSoi via 4D_Tech
Yes, it shows differences in whitespace near comments in the .4DCatalog file. John DeSoi, Ph.D. > On Mar 19, 2020, at 12:38 PM, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > did you diff the versions to see what changed in the .4dcatalog file?

Re: gitignore for projects

2020-03-19 Thread Mike Kerner via 4D_Tech
did you diff the versions to see what changed in the .4dcatalog file? On Tue, Mar 17, 2020 at 7:34 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: > I ignore anything in the settings directory, but you could argue against > that. For example, you might want to track changes in your

Re: gitignore for projects

2020-03-17 Thread John DeSoi via 4D_Tech
I ignore anything in the settings directory, but you could argue against that. For example, you might want to track changes in your build settings file. You can't ignore catalog.4DCatalog if you want to track table and field changes to your structure. I'm currently exporting structure changes

Re: gitignore for projects

2020-03-17 Thread Mike Kerner via 4D_Tech
any reason to NOT ignore the project/sources/catalog.4dcatalog or the settings/directory.json file? it seems those are regenerated every time you do anything in the project. On Mon, Jan 6, 2020 at 2:34 PM John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: > > > > On Jan 6, 2020, at 12:13 PM,

Re: gitignore for projects

2020-01-06 Thread John DeSoi via 4D_Tech
> On Jan 6, 2020, at 12:13 PM, Tom Benedict wrote: > > Just to clarify, you’re talking about the “Comments” page in the Explorer, > not inline comments in code, right? It’s been a few months, but when I > exported the structure in 17R4 inline comments were preserved. Yes, comments in the

Re: gitignore for projects

2020-01-06 Thread Tom Benedict via 4D_Tech
On Jan 6, 2020, at 07:54, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: > >> @John - method comments are gone - does that mean that they aren't even >> exported when the project is created? > > Completely gone and not exported in project mode as far as I can tell. > Just to clarify,

Re: gitignore for projects

2020-01-06 Thread John DeSoi via 4D_Tech
> On Jan 6, 2020, at 9:38 AM, Kirk Brooks via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > So inside of this folder I exclude the Preferences, > userPreferences and Logs. Here's a recent one: That's another 4D 18 upgrade issue. 4D 18 renames Preferences to Settings and rewrites various

Re: gitignore for projects

2020-01-06 Thread John DeSoi via 4D_Tech
> On Jan 6, 2020, at 8:48 AM, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > @Tom - I get an error for 3d buttons, too "3D button style is not > supported." I was thinking of writing a quick tool to fix all the button > types, since parsing and editing the JSON should be

Re: gitignore for projects

2020-01-06 Thread Kirk Brooks via 4D_Tech
Mike, To your original question about which files to ignore I drop all the MacOS specific files (obviously). The RESOURCES folder is placed outside the Project folder. Data, Components and Plugins are too. So the actual folder I make the git repo is the database folder. Project folder is really

Re: gitignore for projects

2020-01-06 Thread Mike Kerner via 4D_Tech
oh gawd, so much has happened on this thread in a couple of days... @Tom - I get an error for 3d buttons, too "3D button style is not supported." I was thinking of writing a quick tool to fix all the button types, since parsing and editing the JSON should be straightforward, but what I might do

Re: gitignore for projects

2020-01-06 Thread John DeSoi via 4D_Tech
Hi Jeremy, One I used to use (GitX, I think) would sometimes take forever or spin the beach ball of death for large commits. I'm now using Fork (which I really like). Sometimes I get various commit or other operation errors. No problems from the command line. Here is another issue to watch

Re: gitignore for projects

2020-01-06 Thread Jeremy French via 4D_Tech
Hi John, What type of issues have you found using a GIT GUI tool? - Jeremy French > On Jan 5, 2020, at 9:45 PM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> > wrote: > > Is this with git directly from the command line or using a GUI tool? I have > seen many performance and other issues

Re: gitignore for projects

2020-01-06 Thread Tom Benedict via 4D_Tech
On Jan 5, 2020, at 18:45, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Hi Tom, > >> Also, my attempt at setting up a git repository ran into similar performance >> issues, only hours instead of minutes. I lost interest at that point. > > Is this with git directly from the command

Re: gitignore for projects

2020-01-05 Thread John DeSoi via 4D_Tech
Hi Jim, > On Jan 5, 2020, at 7:31 AM, Jim Crate via 4D_Tech <4d_tech@lists.4d.com> > wrote: > >> In this model, I'm only making structure and form changes in the 17 master >> branch. Methods can be changed in both branches. > > Are there any problems with functionalities can’t be used in v18

Re: gitignore for projects

2020-01-05 Thread John DeSoi via 4D_Tech
Hi Tom, > On Jan 4, 2020, at 10:13 PM, Tom Benedict wrote: > > How large is your structure? I ask, because our structure has around a > million lines of code and probably 15,000 forms and when I’ve tried exporting > under 17r5 it takes many minutes. Roughly 150,000 lines of source code and

Re: gitignore for projects

2020-01-05 Thread Jim Crate via 4D_Tech
On Jan 4, 2020, at 6:42 PM, John DeSoi via 4D_Tech <4d_tech@lists.4d.com> wrote: > > Yes. Switch back to the 17 "master" branch. Verify there are no uncommitted > changes in the Project folder (git status called from 4D). Move the Project > folder to the trash. Run the 17 to 18 script again and

Re: gitignore for projects

2020-01-04 Thread Tom Benedict via 4D_Tech
John DeSoi, Ph.D. Thanks for offering your workflow, John. This is very interesting. > "Master" branch is version 17. When I want to commit a new version I have a > 4D method that copies the structure, opens it in 4D 18, and then exports the > structure in project mode format. This can be

Re: gitignore for projects

2020-01-04 Thread John DeSoi via 4D_Tech
Hi Jeremy, > On Jan 4, 2020, at 1:53 PM, Jeremy French wrote: > > Did you create the v17 Master Branch by: > > 1) Open a copy of the v17 structure and then open the copy in v18 to convert > v17 to v18; and > 2) Commit the conversion to v18 as the v17 Master branch; and > 3) Create a new

Re: gitignore for projects

2020-01-04 Thread Jeremy French via 4D_Tech
Hi John, > You can keep your project in binary mode (even keep it in version 17) and > still take advantage of version 18, project mode, and git. Interesting idea. > "Master" branch is version 17. Did you create the v17 Master Branch by: 1) Open a copy of the v17 structure and then open the

Re: gitignore for projects

2020-01-04 Thread John DeSoi via 4D_Tech
You can keep your project in binary mode (even keep it in version 17) and still take advantage of version 18, project mode, and git. Here is what I'm doing. "Master" branch is version 17. When I want to commit a new version I have a 4D method that copies the structure, opens it in 4D 18, and

Re: gitignore for projects

2020-01-03 Thread Tom Benedict via 4D_Tech
This is a great discussion of best practices and guidelines for 4D Projects and I hope others chime in. It’s a new world for many of us. I would like to start using Project Mode, but our apps have hundreds (maybe thousands) of highlight buttons, which are incompatible. If anyone has built an

Re: gitignore for projects

2020-01-03 Thread Jeremy French via 4D_Tech
Hi Mike, No. What you call “root” is the folder whose top level contains both the 4D Project Database and its GIT local repository. See “Architecture of a 4D Project” at https://developer.4d.com/docs/en/Project/architecture.html In

Re: gitignore for projects

2020-01-03 Thread Mike Kerner via 4D_Tech
Jeremy, Are you ignoring root so you catch .4DB, .RSR, .4DL, etc.? On Fri, Jan 3, 2020 at 3:46 PM Mike Kerner wrote: > Hey Tom, > I read the blog post and the first thing I thought was that trying to > teach everyone how to use the CLI was not the wisest way to go. Getting > your brain wrapped

Re: gitignore for projects

2020-01-03 Thread Mike Kerner via 4D_Tech
Hey Tom, I read the blog post and the first thing I thought was that trying to teach everyone how to use the CLI was not the wisest way to go. Getting your brain wrapped around all of the things that happen in git (wait - why am I force-pushing after a rebase? How do I redact a repo?) is hard

Re: gitignore for projects

2020-01-03 Thread Jeremy French via 4D_Tech
Hi Mike, This is what I’m trying: -- # Ignore all at the root. /* # Except: !.gitignore !Resources !Project Project/DerivedData Resources/Cache # Ignore everywhere. __MACOSX > On Jan 3, 2020, at 9:38 AM, Mike Kerner via 4D_Tech <4d_tech@lists.4d.com>

Re: gitignore for projects

2020-01-03 Thread Tom Benedict via 4D_Tech
boun...@lists.4d.com> on behalf of 4D Tech Mailing >> List <4d_tech@lists.4d.com> >> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> >> Date: Friday, 3 January 2020 at 14:38 >> T

Re: gitignore for projects

2020-01-03 Thread Mike Kerner via 4D_Tech
; on behalf of 4D Tech Mailing > List <4d_tech@lists.4d.com> > Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Date: Friday, 3 January 2020 at 14:38 > To: 4D Tech Mailing List <4d_tech@lists.4d.com> > Cc: Mike Kerner > Subject: gitignore for projects >

Re: gitignore for projects

2020-01-03 Thread Narinder Chandi via 4D_Tech
Cc: Mike Kerner Subject: gitignore for projects It would be nice if when 4D exported a project, it created a .gitignore file, but since it does not, which files/folders are we excluding? -- On the first day, God created the heavens and the Earth On the second day

gitignore for projects

2020-01-03 Thread Mike Kerner via 4D_Tech
It would be nice if when 4D exported a project, it created a .gitignore file, but since it does not, which files/folders are we excluding? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few