Vicent Marti
cbda09d00b
git_revision -> git_revspec
2013-04-15 23:40:46 +02:00
Vicent Marti
36c2dfed69
Is this crazy?
2013-04-15 23:32:40 +02:00
Vicent Marti
d064c74794
Merge remote-tracking branch 'ben/unified-revparse' into development
2013-04-15 23:18:24 +02:00
Ben Straub
299a224be1
Change git_revparse to output git_object pointers
...
This will probably prevent many lookup/free
operations in calling code.
2013-04-15 12:00:04 -07:00
Ben Straub
2ebc3c66c2
Redeploy git_revparse_single.
2013-04-15 11:57:24 -07:00
Vicent Martí
ea8bac37b0
Merge pull request #1450 from carlosmn/branch-upstream
...
Branch upstream configuration
2013-04-11 06:34:59 -07:00
Carlos Martín Nieto
d59942c2ab
branch: add more upstream configuration management
...
Add functions to set and unset the upstream configuration to
complement the getter we already have.
2013-04-11 12:27:25 +02:00
Ben Straub
1aa21fe3b8
Deprecate git_revparse_single and _rangelike
2013-04-09 05:07:04 +04:00
Ben Straub
8480eef7ee
Implement unified git_revparse
2013-04-08 16:36:11 +04:00
Vicent Marti
812e5aea59
test: Add missing NULLs
2013-04-07 07:23:08 +02:00
Vicent Marti
d9ecaf8c6f
Merge remote-tracking branch 'gnprice/revwalk' into development
2013-04-07 07:22:38 +02:00
Greg Price
b208d90022
revparse: Parse range-like syntax
...
Signed-off-by: Greg Price <price@mit.edu>
2013-04-06 20:51:16 -07:00
nulltoken
24cb87e2a6
tag: Fix parsing when no tagger nor message
2013-03-31 14:36:51 +02:00
Carlos Martín Nieto
97016f29ab
branch: refactor git_branch_remote_name
...
Return the size we'd need to write to instead of simply an
error. Split the function into two to be used later by the upstream
configuration functions.
2013-03-31 12:51:53 +02:00
Carlos Martín Nieto
a258d8e357
branch: rename 'tracking' to 'upstream'
...
The term 'tracking' is overloaded. Help distinguish what we mean by
using 'upstream' for this part of the library.
2013-03-30 15:45:57 +01:00
Russell Belfer
55e0f53d86
Fix various build warnings
...
This fixes various build warnings on Mac and Windows (64-bit).
2013-03-14 15:09:29 -07:00
Edward Thomson
d00d54645d
immutable references and a pluggable ref database
2013-03-07 11:01:52 -06:00
Carlos Martín Nieto
bb45c57f94
refs: explicitly catch leading slashes
...
It's somewhat common to try to write "/refs/tags/something". There is
no easy way to catch it during the main body of the function, as there
is no way to distinguish whether it's a leading slash or a double
slash somewhere in the middle.
Catch this at the beginning so we don't trigger the assert in
is_all_caps_and_underscore().
2013-03-07 16:38:44 +01:00
Russell Belfer
0d1b094b07
Fix portability issues on Windows
...
The new tests were not taking core.filemode into account when
testing file modes after repo initialization. Fixed that and some
other Windows warnings that have crept in.
2013-02-26 13:15:06 -08:00
nulltoken
bbc53e4f93
branch: refactor git_branch_remote_name() tests
2013-02-22 17:04:25 +01:00
nulltoken
c1b5e8c42b
branch: Make git_branch_remote_name() cope with orphaned heads
2013-02-22 17:04:23 +01:00
nulltoken
2bca5b679b
remote: Introduce git_remote_is_valid_name()
...
Fix libgit2/libgit2sharp#318
2013-02-11 23:19:41 +01:00
nulltoken
4d811c3b77
refs: No component of a refname can end with '.lock'
2013-02-11 23:19:40 +01:00
Russell Belfer
390a3c8141
Merge pull request #1190 from nulltoken/topic/reset-paths
...
reset: Allow the selective reset of pathspecs
2013-02-11 11:44:00 -08:00
Philip Kelley
e026cfee00
Merge pull request #1323 from jamill/resolve_remote
...
Resolve a remote branch's remote
2013-02-11 09:12:39 -08:00
Jameson Miller
2e3e8c889b
Teach remote branch to return its remote
2013-02-11 11:36:22 -05:00
Scott J. Goldman
6ce61a0bf6
tests: fix whitespace in refs/rename.c
2013-02-08 14:25:41 -08:00
nulltoken
3ad052218c
Fix MSVC compilation warnings
...
Fix #1308
2013-02-05 20:33:27 +01:00
nulltoken
0e8e5a6189
revparse: Lookup sha before branch
2013-02-03 11:44:26 +01:00
nulltoken
545b479a07
revparse: Lookup branch before described tag
...
Fix #1306
2013-02-03 11:18:24 +01:00
Carlos Martín Nieto
e5ef0f1814
refs: handle ALLOW_ONELEVEL normalization with leading slash
...
A leading slash confuses the name normalization code when the flags
include ALLOW_ONELEVEL. Catch this case in particular to avoid
triggering an assertion in the uppercase check which expects us not to
pass it an empty string.
The existing tests don't catch this as they simply use the NORMAL
flag.
This fixes #1300 .
2013-01-31 20:23:30 +01:00
Sebastian Bauer
a7f8065f8c
Use cl_assert_equal_s() instead of strcmp().
...
Replaced all cl_assert(!strcmp()) or semantically equivalent forms
by cl_assert_equal_s().
2013-01-25 06:55:56 +01:00
Sebastian Bauer
c253056d24
Added git_branch_name().
...
This is a convenience function to get the branch name of a given
ref. The returned branch name is compatible with the name that can
be supplied e.g. to git_branch_lookup(). That is, the prefixes
"refs/heads" or "refs/remotes" are omitted.
Also added a new test for testing the new function.
2013-01-25 05:24:21 +01:00
Scott J. Goldman
5c7b77c4f8
Seperate out a new test that verifies packed-refs with no trailing newline
...
as per @vmg's request
2013-01-22 16:01:03 -08:00
nulltoken
bf031581d3
branch: Introduce git_branch_tracking_name()
2013-01-16 22:56:13 +01:00
Martin Woodward
ba1a430a8b
Add jGit license block to derrived tests
...
Add the jGit license block to tests derrived from jGit as per the
terms of the BSD license.
2013-01-04 17:29:45 +00:00
Ben Straub
72629a10e3
Clean up GCC build warnings
2012-12-10 10:05:31 -08:00
Vicent Martí
e05ca13f1f
Merge pull request #1115 from ben/struct-versions
...
Version info for public structs
2012-12-05 11:47:19 -08:00
nulltoken
cc1466264a
revparse: Deploy EINVALIDSPEC usage
2012-12-01 08:34:31 +01:00
nulltoken
84166facc9
revparse: remove timezone setup in tests
2012-12-01 08:34:30 +01:00
nulltoken
bc05f30c47
object: refine git_object_peel() error report
2012-12-01 08:34:29 +01:00
nulltoken
621730383a
branch: Deploy EINVALIDSPEC usage
2012-12-01 08:34:28 +01:00
nulltoken
80212ecb1c
reflog: Deploy EINVALIDSPEC usage
2012-12-01 08:34:27 +01:00
nulltoken
e4aa7f58fe
refs: cover git_reference_name_to_oid() unfound behavior
2012-12-01 08:34:26 +01:00
nulltoken
80d9d1df14
refs: Deploy EINVALIDSPEC usage
2012-12-01 08:34:26 +01:00
nulltoken
47261d9c8a
tests: drop unused variables
2012-12-01 08:34:25 +01:00
nulltoken
3da73c40fc
Fix compilation warnings
2012-12-01 08:34:21 +01:00
Ben Straub
f4fc9fdba0
Cleanup nitpicky things
2012-11-30 13:12:10 -08:00
nulltoken
37849a8ec3
tracking: fix retrieval of the tracking ref of branch with empty merge and/or remote entry
2012-11-28 20:00:07 +01:00
nulltoken
f1bd50d61d
tracking: remove code duplication in test
2012-11-28 20:00:06 +01:00