Generate Files in .git Folder

Get help with the installation and running of the Agent Git or Agent SVN plug-ins. This section can also be used for posting comments, suggestions or submitting feature requests. Please do not post bug reports here. When in doubt post your question here.
Post Reply
cmanners
Posts: 1
Joined: Thu Jul 15, 2021 7:17 pm

Generate Files in .git Folder

Post by cmanners »

The first time I use Agent Git in my PowerBuilder workspace, it generates a .git folder containing among other things a file named agentgit.db. This first run is slow. Is there anyway to generate those files outside of PowerBuilder (i.e., from a command line)? I'm hoping that I can add something to an automated process so I don't need to wait for it whenever I start working with a new workspace.
jussij
Site Admin
Posts: 2496
Joined: Fri Aug 13, 2004 5:10 pm

Re: Generate Files in .git Folder

Post by jussij »

The first time I use Agent Git in my PowerBuilder workspace, it generates a .git folder containing among other things a file named agentgit.db.
That agentgit.db is used by Agent Git to track MS-SCCI style check-outs, check-ins and locking.

So that file is not required to be there initially as Agent Git will create that file on demand.
This first run is slow.
This could be a bug in Agent Git.

In the Agent Git configuration utility there are these two 'debug only' options:

a. Help debug the Git setup with extra logging information
b. Measure Git duration

If you turn on these two options extra debug information gets written to the log file.

You can find the location of that log file using the View Debug Log file button.

If you turn on those two options, repeat the slowdown in PoweBuilder and then send through the log file as an e-mail attachment I'd be happy to see if there is something going wrong in Agent Git itself.

As a example as to what to expect, I created a test project in Visual Studio, check that project into Git using Agent Git and saw the following Visual Studio output:
---- Operation started at time 8:39:49 AM ----
....
....
---- Operation completed successfully at time 8:39:55 AM ----
That output shows the checking too 5 seconds to complete and that is the sort of response time I would expect to see.
Is there anyway to generate those files outside of PowerBuilder (i.e., from a command line)?
Yes you can.

For example you could use something like TortoiseGit to manage these Git projects or even just the git.exe command client line tool.

For example running these git.exe commands would create a similar .git folder:

Code: Select all

git init
git add -A
git commit -m 'Added my project'
Once you have that .git folder, from inside the IDE you just need to bind the PowerBuilder workspace to the folder containing that .git folder.

Cheers Jussi
jussij
Site Admin
Posts: 2496
Joined: Fri Aug 13, 2004 5:10 pm

Re: Generate Files in .git Folder

Post by jussij »

The issue report abive was a slowness of response experience when opening a PowerBuilder workspace while also using Agent Git.

The fix for this slowness is two fold: Cheers Jussi
Post Reply