Vicent Marti
f0244463ad
branch: Add repository
argument to create
...
Yes, we can get the repository from the owner of the object, but having
it marked explicitly makes the API more consistent.
2012-07-27 18:49:37 +02:00
Vicent Marti
b41a30bdbb
Merge remote-tracking branch 'nulltoken/topic/branch-rework' into development
2012-07-27 18:45:55 +02:00
Vicent Marti
b84f75c357
reflog: Rename entry_drop
to drop
2012-07-27 18:43:02 +02:00
Vicent Marti
43b67d496b
Merge remote-tracking branch 'nulltoken/topic/reflog-delete' into development
2012-07-27 18:39:40 +02:00
Ben Straub
6eb240b0b4
Checkout: use caller's flags for open()
2012-07-26 19:09:37 -07:00
Carlos Martín Nieto
c0c390255a
remote: fix C99-ism
2012-07-27 02:37:15 +02:00
Carlos Martín Nieto
581b6a8e90
Merge pull request #838 from scunz/remote_push_url
...
Add support for push-urls
2012-07-26 17:29:58 -07:00
Ben Straub
095ccc013f
Checkout: implementation of most options
2012-07-26 16:31:49 -07:00
Russell Belfer
2031760c62
Fix git_tree_walk to return user error
...
This makes sure that an error code returned by the callback function
of `git_tree_walk` will stop the iteration and get propagated back
to the caller verbatim.
Also, this adds a minor helper function `git_tree_entry_byoid` that
searches a `git_tree` for an entry with the given OID. This isn't
a fast function, but it's easier than writing the loop yourself as
an external user of the library.
2012-07-26 16:10:22 -07:00
Sascha Cunz
eff5b49927
Remotes: Use correct url in git_remote_connect
2012-07-27 00:08:56 +02:00
Sascha Cunz
413d556384
Remotes: Save a cleaned pushurl (by deleting it from the config)
2012-07-27 00:08:54 +02:00
Sascha Cunz
8689a69d09
Tests: Test remote's pushurl
2012-07-26 23:08:24 +02:00
Sascha Cunz
765015902a
Remotes: Setter for url+pushurl; Getter for pushurl
2012-07-26 23:08:22 +02:00
Sascha Cunz
3ed4b5012b
Remotes: Load/Save for fetch.foo.pushurl
2012-07-26 22:36:43 +02:00
Sascha Cunz
cb020f0d99
Remove unneccessary string transformation
2012-07-26 22:36:43 +02:00
Ben Straub
b401bace1b
Restructure for better checkout options
...
* Removed the #define for defaults
* Promoted progress structure to top-level API call
argument
2012-07-26 13:12:21 -07:00
Ben Straub
ef9905c990
checkout: introduce git_checkout_opts
...
Refactor checkout into several more-sensible
entry points, which consolidates common options
into a single structure that may be passed around.
2012-07-26 12:58:44 -07:00
Michael Schubert
0aeae70553
tests-clar/status: fix missing-prototype warning
2012-07-25 17:01:50 +02:00
nulltoken
1d733b573a
odb: add some documentation to the foreach() test
2012-07-25 11:23:27 +02:00
nulltoken
c3be5c5af0
reflog: keep the reflog name in sync with the reference name
2012-07-25 08:01:13 +02:00
nulltoken
40c75652d0
reflog: prevent git_reflog_append() from persisting the reflog back to disk
2012-07-25 07:53:32 +02:00
nulltoken
ae8331784e
reflog: prevent git_reflog_read() from chocking when no log exists yet
2012-07-25 07:53:31 +02:00
nulltoken
bd72425d16
reflog: introduce git_reflog_write()
2012-07-25 07:53:30 +02:00
nulltoken
d284b3de63
reflog: rename git_reflog_write() to git_reflog_append()
2012-07-25 07:53:30 +02:00
nulltoken
59341a5d59
reflog: introduce git_reflog_entry_drop()
2012-07-25 07:53:29 +02:00
nulltoken
7c458e3aee
reflog: add GIT_OID_HEX_ZERO constant
2012-07-25 07:53:27 +02:00
nulltoken
1cb157184b
tests: reorganize reflog tests
2012-07-25 07:53:27 +02:00
Russell Belfer
7779437fd5
Merge pull request #799 from yorah/fix/issue-787
...
Fix/issue 787
2012-07-24 11:21:32 -07:00
Carlos Martín Nieto
034ccc76a6
travis: be more idiomatic with the environment
...
Instead of putting the compilers in CC, use the travis configuration
to specify them.
Also ask it to send reports to the IRC channel.
2012-07-24 19:45:51 +02:00
nulltoken
b8457baae2
portability: Improve x86/amd64 compatibility
2012-07-24 16:10:12 +02:00
nulltoken
786a17cd28
branch: enforce git_branch_delete() parameter checking
2012-07-24 16:09:50 +02:00
nulltoken
ef4d795ec5
refs: drop git_reference_remote_tracking_from_branch()
2012-07-24 16:09:49 +02:00
nulltoken
fb910281d6
branch: introduce git_branch_tracking()
2012-07-24 16:09:48 +02:00
nulltoken
bf9e8cc86b
branch: make git_branch_move() reference based
2012-07-24 16:09:47 +02:00
nulltoken
abee7bd36a
branch: slight git_branch_create() doc improvement
2012-07-24 16:09:46 +02:00
nulltoken
88bcd5153f
branch: introduce git_reference_is_branch()
2012-07-24 16:09:45 +02:00
nulltoken
eed378b669
branch: introduce git_branch_lookup()
2012-07-24 16:09:44 +02:00
nulltoken
b308c11e4e
branch: change git_branch_create() to make it return a reference
2012-07-24 16:09:43 +02:00
nulltoken
326ca710a0
branch: remove useless header
2012-07-24 16:09:42 +02:00
yorah
a1773f9d89
Add flag to turn off pathspec testing for diff and status
2012-07-24 14:03:09 +02:00
yorah
ffbc689c87
Fix getting status of files containing brackets
2012-07-24 14:03:09 +02:00
yorah
e5e71f5e1d
Add more test coverage to match default git behavior for files containing brackets
2012-07-24 14:03:08 +02:00
aroben
151446ca60
Add a test for getting status of files containing brackets
2012-07-24 14:03:08 +02:00
yorah
02a0d651d7
Add git_buf_unescape and git__unescape to unescape all characters in a string (in-place)
2012-07-24 14:03:07 +02:00
Carlos Martín Nieto
944d250f96
update_tips: report error if it fails to create a ref
2012-07-24 10:34:28 +02:00
Carlos Martín Nieto
7e48635d16
revparse: initialize 'parsed' in case the user doesn't give a number with the @-notation
2012-07-23 21:56:06 +02:00
Carlos Martín Nieto
8d711074ac
travis: build with both gcc and clang
2012-07-23 21:52:28 +02:00
Carlos Martín Nieto
279b45b05b
revparse: don't allow an empty string
...
Asking the library for "" used to give HEAD, but that's trying to
impose a default at the wrong layer. Make it fail.
2012-07-23 21:32:45 +02:00
Carlos Martín Nieto
0b956819f6
config: set the error code if we can't find the global/system config
2012-07-23 15:34:33 +02:00
Ben Straub
dc03369c07
checkout: create submodule dirs
2012-07-21 20:12:28 -07:00