- 01 Aug, 2019 1 commit
-
-
Static analysis of example code found multiple findings of `printf` usage where filling value is members of git_indexer_progress object. Specifier used was for signed int but git_indexer_progress members are typed as unsigned ints. `printf` specifiers were altered to match type.
Scott Furry committed
-
- 05 Jul, 2019 1 commit
-
-
When computing the progress, we perform some arithmetics that are implicitly converting from `size_t` to `int`. In one case we're calclulating a percentage, so we know that it should always be in the range of [0,100] and thus we're fine. In the other case we convert from bytes to kilobytes -- this should be stored in a `size_t` to avoid loss of precision, even though it probably won't matter due to limited download rates.
Patrick Steinhardt committed
-
- 22 Feb, 2019 1 commit
-
-
Update internal usage of `git_transfer_progress` to `git_indexer_progreses`.
Edward Thomson committed
-
- 15 Feb, 2019 2 commits
-
-
Inside of our networking example code, we have a git2 executable that acts as an entry point to all the different network examples. As such, it is kind of the same like the normal git(1) executable in that it simply arbitrates to the respective subcommands. Let's extend this approach and merge all examples into a single standalone lg2 executable. Instead of building an executable for all the existing examples we have, we now bundle them all inside of the lg2 one and let them be callable via subcommands. In the process, we can get rid of duplicated library initialization, deinitialization and repository discovery code. Instead of having each subcommand handle these on its own, we simply do it inside of the single main function now.
Patrick Steinhardt committed -
Right now, we have two sets of "common" code, one containing general common code and one containing network common code. As we intend to get rid of the network subdirectory and instead merge all examples into a single standalone executable, this distinction doesn't make a lot of sense now. Furthermore, the common network code is not that big. Let's get rid of the common network code by merging it into the general common code.
Patrick Steinhardt committed
-
- 22 Jan, 2019 1 commit
-
-
Edward Thomson committed
-
- 13 Jul, 2018 1 commit
-
-
C++ style comment ("//") are not specified by the ISO C90 standard and thus do not conform to it. While libgit2 aims to conform to C90, we did not enforce it until now, which is why quite a lot of these non-conforming comments have snuck into our codebase. Do a tree-wide conversion of all C++ style comments to the supported C style comments to allow us enforcing strict C90 compliance in a later commit.
Patrick Steinhardt committed
-
- 09 Jan, 2017 1 commit
-
-
Format of a length of string to the correct format is:%.*s
Force.Charlie-I committed
-
- 29 Jun, 2015 1 commit
-
-
Edward Thomson committed
-
- 13 May, 2015 2 commits
-
-
This lets us see what the server (or libgit2 locally) is doing, rather than having to stare at a non-moving screen.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
- 27 Feb, 2015 1 commit
-
-
Edward Thomson committed
-
- 10 Jan, 2015 1 commit
-
-
Local transports don't have data about the size, avoid dividing by zero in the callback.
Edward Thomson committed
-
- 06 Mar, 2014 1 commit
-
-
Ben Straub committed
-
- 25 Feb, 2014 1 commit
-
-
- added MSVC cmake definitions to disable warnings - general.c is rewritten so it is ansi-c compatible and compiles ok on microsoft windows - some MSVC reported warning fixes
Miha committed
-
- 23 Oct, 2013 1 commit
-
-
The user is unable to derive the number of deltas in the pack, as that would require them to capture the stats exactly in the moment between download and final processing, which is abstracted away in the fetch. Capture these numbers for the user and expose them in the progress struct. The clone and fetch examples now also present this information to the user.
Carlos Martín Nieto committed
-
- 02 Oct, 2013 3 commits
-
-
There's no need for this to be a pointer to somewhere else.
Carlos Martín Nieto committed -
Move this one as well, letting us have a single way of setting the callbacks for the remote, and removing fields from the clone options.
Carlos Martín Nieto committed -
The text progress and update_tips callbacks are already part of the struct, which was meant to unify the callback setup, but the download one was left out.
Carlos Martín Nieto committed
-
- 01 Sep, 2013 1 commit
-
-
Krzysztof Adamski committed
-
- 26 Feb, 2013 1 commit
-
-
Martin Pool was the original author of the code referenced in the clone example. Make note that he's given his permission and also give him the proper credit.
Martin Woodward committed
-
- 05 Feb, 2013 1 commit
-
-
This works by having the indexer watch the return code of the callback, so will only take effect on object boundaries.
Ben Straub committed
-
- 31 Jan, 2013 1 commit
-
-
Ben Straub committed
-
- 23 Jan, 2013 1 commit
-
-
Edward Thomson committed
-
- 02 Jan, 2013 1 commit
-
-
Ben Straub committed
-
- 27 Dec, 2012 1 commit
-
-
Ben Straub committed
-
- 20 Dec, 2012 1 commit
-
-
Ben Straub committed
-
- 14 Dec, 2012 2 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
- 13 Dec, 2012 3 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
Ben Straub committed
-
- 30 Nov, 2012 1 commit
-
-
Ben Straub committed
-
- 27 Nov, 2012 1 commit
-
-
Ben Straub committed
-
- 09 Nov, 2012 1 commit
-
-
This fixes a number of warnings and problems with cross-platform builds. Among other things, it's not safe to name a member of a structure "strcmp" because that may be #defined.
Russell Belfer committed
-
- 24 Oct, 2012 1 commit
-
-
Ben Straub committed
-
- 20 Oct, 2012 4 commits
-
-
Ben Straub committed
-
Ben Straub committed
-
The fetch code takes advantage of this to implement a progress callback every 100kb of transfer.
Ben Straub committed -
Ben Straub committed
-