Timo Röhling
f1fdcff351
New upstream version 1.6.4+ds
2023-06-19 11:01:40 +02:00
Timo Röhling
ad5611d85b
New upstream version 1.5.0+ds
2022-08-28 14:13:25 +02:00
Mohammed Bilal
e579e0f707
New upstream version 1.4.3+dfsg.1
2022-05-05 10:45:21 +00:00
Pirate Praveen
c25aa7cd82
New upstream version 1.3.0+dfsg.1
2021-12-10 16:42:08 +05:30
Utkarsh Gupta
22a2d3d5ef
New upstream version 1.1.0+dfsg.1
2020-12-07 04:06:37 +05:30
Jongmin Kim
ac3d33df5d
New upstream version 0.28.1+dfsg.1
2019-05-12 00:29:21 +09:00
Ximin Luo
4b3ec53c78
New upstream version 0.27.4+dfsg.1
2018-08-10 19:43:40 -07:00
Pirate Praveen
eae0bfdcd8
New upstream version 0.27.0+dfsg.1
2018-04-26 18:06:07 +05:30
Patrick Steinhardt
f0ca00e013
examples: network: refactor credentials callback
...
The credentials callback reads the username and password via scanf into
fixed-length arrays. While these are simply examples and as such not as
interesting, the unchecked return value of scanf causes GCC to emit
warnings. So while we're busy to shut up GCC, we also fix the possible
overflow of scanf by using getline instead.
2017-05-15 07:34:03 +02:00
Patrick Steinhardt
f9ea8c6a14
examples: general: fix memory leaks
2017-01-12 22:04:36 +01:00
Patrick Steinhardt
ed2b1c7e75
examples: general: display config only if it was found
2017-01-12 22:01:45 +01:00
Patrick Steinhardt
5aa101078e
examples: general: narrow down scope of loop variables
2017-01-12 22:01:23 +01:00
Patrick Steinhardt
8572e2252b
examples: general: clean up committer/author variables
2017-01-12 22:00:53 +01:00
Force.Charlie-I
3fdba15c2f
fix examples/network/clone.c: heap-buffer-overflow
...
Format of a length of string to the correct format is:%.*s
2017-01-09 14:09:57 +08:00
Douglas Swanson
832278bf36
Fix issue #4046 Seg fault in config_files()
2016-12-29 07:43:03 -07:00
Patrick Steinhardt
fc29391950
examples: add: fix type casting warning
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
5c2a8361d7
examples: diff: parse correct types for line-diffopts
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
7314da1055
examples: fix warnings in network/fetch.c
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
e2d1b7ecbf
examples: general: fix remaining warnings
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
662eee1541
examples: general: convert C99 comments to C90 comments
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
c313e3d986
examples: general: extract function demonstrating OID parsing
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
29d9afc0fb
examples: general: extract function demonstrating ODB
2016-10-10 09:04:42 +02:00
Patrick Steinhardt
b009adad35
examples: general: extract function demonstrating commit writing
2016-10-10 09:04:41 +02:00
Patrick Steinhardt
15960454c5
examples: general: extract functions demonstrating object parsing
2016-10-10 09:04:41 +02:00
Patrick Steinhardt
8b93ccdf08
examples: general: extract function demonstrating revwalking
2016-10-10 09:04:41 +02:00
Patrick Steinhardt
c079e3c847
examples: general: extract function demonstrating index walking
2016-10-10 09:04:41 +02:00
Patrick Steinhardt
f9a7973dd9
examples: general: extract function demonstrating reference listings
2016-10-10 09:04:41 +02:00
Patrick Steinhardt
986913f45b
examples: general: extract function demonstrating config files
2016-10-10 09:04:41 +02:00
Patrick Steinhardt
176d58bad4
examples: general: use tabs instead of spaces
2016-10-10 09:04:41 +02:00
Carlos Martín Nieto
07bd3e57d9
proxy: ask the user for credentials if necessary
2016-04-19 13:54:19 +02:00
Patrick McKenna
698e0c2777
Update link to Pro Git's Git internals chapter.
2016-03-07 16:34:30 -08:00
Eun
8b8f1f9188
fix return
2015-10-07 14:01:05 +02:00
Matt Burke
5d7cd57f99
Update another call to git_remote_connect
2015-09-08 14:15:29 -04:00
Carlos Martín Nieto
97c0a85fc6
Merge pull request #3306 from libgit2/cmn/fetch-ex-fetch
...
examples: modernise the fetch example
2015-07-13 11:23:07 +02:00
Matthew Plough
768f8be31c
Fix #3094 - improve use of portable size_t/ssize_t format specifiers.
...
The header src/cc-compat.h defines portable format specifiers PRIuZ, PRIdZ, and PRIxZ. The original report highlighted the need to use these specifiers in examples/network/fetch.c. For this commit, I checked all C source and header files not in deps/ and transitioned to the appropriate format specifier where appropriate.
2015-07-12 19:55:19 +02:00
Carlos Martín Nieto
6c7e86e158
examples: modernise the fetch example
...
Under normal conditions, git_remote_fetch() should be the only function
used to perform a fetch. Don't let the example lead people astray.
2015-07-12 19:41:01 +02:00
Edward Thomson
d202bb7d3b
examples: clean up some warnings
2015-06-29 21:48:35 +00:00
Carlos Martín Nieto
c2418f4613
Rename FALLBACK to UNSPECIFIED
...
Fallback describes the mechanism, while unspecified explains what the
user is thinking.
2015-06-25 12:48:44 +02:00
Carlos Martín Nieto
7d6dacdc17
examples: adjust to submodule status API change
2015-06-22 17:02:55 +02:00
Ariel O. Barria
9334c86f49
print_usage functions is defined but not used
...
Use the previously created function to display a message when the arguments are not valid.
ticket 3095
2015-06-03 14:54:35 -05:00
Carlos Martín Nieto
ae5b93629c
remote: remove fetch parameter from create_anonymous
...
An anonymous remote is not configured and cannot therefore have
configured refspecs. Remove the parameter which adds this from the
constructor.
2015-05-28 15:32:20 +02:00
Carlos Martín Nieto
cf66c4748c
examples: show the sideband progress on clone
...
This lets us see what the server (or libgit2 locally) is doing, rather
than having to stare at a non-moving screen.
2015-05-13 15:52:12 +02:00
Carlos Martín Nieto
3fec548a98
examples: adjust to the new remote API
2015-05-13 09:46:36 +02:00
Tomas Paladin Volf
785990bead
Restructured to be nicer example
...
Code restructured to better represent best practice when
using libgit2.
2015-05-02 12:16:22 +02:00
Tomas Paladin Volf
9bff15f4a4
Added call to git_libgit2_shutdown()
...
Added forgotten call to git_libgit2_shutdown() to the /examples/network/git2.c.
2015-04-30 15:10:28 +02:00
Patrick Steinhardt
c843736d63
describe example: enable building by default.
2015-04-07 14:55:05 +02:00
Patrick Steinhardt
0a2f99fd13
examples: add remote example.
2015-03-19 08:45:34 +01:00
Edward Thomson
72ca65d538
Merge pull request #2808 from libgit2/cmn/repo-ident
...
Remove the signature from ref-modifying functions
2015-03-03 10:07:36 -05:00
Carlos Martín Nieto
659cf2029f
Remove the signature from ref-modifying functions
...
The signature for the reflog is not something which changes
dynamically. Almost all uses will be NULL, since we want for the
repository's default identity to be used, making it noise.
In order to allow for changing the identity, we instead provide
git_repository_set_ident() and git_repository_ident() which allow a user
to override the choice of signature.
2015-03-03 14:40:50 +01:00
Carlos Martín Nieto
fe477951be
Merge pull request #2885 from JIghtuse/master
...
describe example: function to add commits to opts
2015-03-03 14:35:10 +01:00