Have an amazing solution built in RAD Studio? Let us know. Looking for discounts? Visit our Special Offers page!
Delphi

Work Efficiently With Git Repositories Using GitForDelphi

GitForDelphi allows you to work with git repositories from within your Delphi code, with the only dependencies being the uGitForDelphi.pas source file and the libgit2 DLL.

It’s extremely easy to use GitForDelphi !

To set it up, just add uGitForDelphi to the uses section, and call InitLibgit2; and the libgit2 DLL will be loaded, and its API will be ready to use to read from, create and edit git repositories.

git4delphi


As said in the article on Github, currently, GitForDelphi is exposing the libgit2 C API exactly, all function exports from git2.dll have been converted, including necessary structures. Some of the tests from libgit2 have been converted and are all passing.

I intend to make a wrapper class, TGitRepository to give a nicer Delphi-like interface to working with repositories.

pre-built libgit2 DLL:
git2.dll built from Visual C++ 2010 Express is in the binary branch, you can use it while in the master branch like this

git checkout origin/binary — tests/git2.dll; git reset tests/git2.dll
See LIBGIT2_sha file for the libgit2 commit that the dll and code are currently based on.

Also said in the article is that permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

This is the best git repository tool. If you want to check it and download, refer to the link below:

https://github.com/libgit2/GitForDelphi


Reduce development time and get to market faster with RAD Studio, Delphi, or C++Builder.
Design. Code. Compile. Deploy.
Start Free Trial   Upgrade Today

   Free Delphi Community Edition   Free C++Builder Community Edition

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

IN THE ARTICLES