Vicent Martí
e5f495012d
Merge pull request #848 from carlosmn/pending-message
...
repository: add a getter and remove function for git's prepared message
2012-08-01 16:21:41 -07:00
Sascha Cunz
e564e4969c
Add function to query for compile time settings.
2012-08-01 20:02:32 +02:00
Carlos Martín Nieto
074841ec6a
repository: add a getter and remove function for git's prepared message
...
The 'git revert/cherry-pick/merge -n' commands leave .git/MERGE_MSG
behind so that git-commit can find it. As we don't yet support these
operations, users who are shelling out to let git perform these
operations haven't had a convenient way to get this message.
These functions allow the user to retrieve the message and remove it
when she's created the commit.
2012-08-01 18:39:20 +02:00
Vicent Martí
bfb5916468
Merge pull request #833 from carlosmn/odb-one
...
odb: allow creating an ODB backend from a packfile index
2012-07-31 10:16:21 -07:00
Michael Schubert
f6b26e770f
git_oid_cmp: inline memcmp by hand to optimize
...
git.git uses an inlined hashcmp function instead of memcmp, since it
performes much better when comparing hashes (most hashes compared
diverge within the first byte).
Measurements and rationale for the curious reader:
http://thread.gmane.org/gmane.comp.version-control.git/172286
2012-07-29 20:50:58 +02:00
Vicent Martí
60d5cc5747
Merge pull request #834 from carlosmn/network-callbacks
...
Add a struct for network callbacks
2012-07-27 09:52:44 -07:00
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
Sascha Cunz
765015902a
Remotes: Setter for url+pushurl; Getter for pushurl
2012-07-26 23:08:22 +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
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
yorah
a1773f9d89
Add flag to turn off pathspec testing for diff and status
2012-07-24 14:03:09 +02:00
Carlos Martín Nieto
b3aaa7a7c8
Add a struct for network callbacks
...
Currently only update_tips is used, but it prepares the way for
progress output during download.
2012-07-21 18:44:01 +02:00
Vicent Martí
5b78696334
Merge pull request #818 from nulltoken/rework
...
Revparse rework
2012-07-21 07:56:59 -07:00
Carlos Martín Nieto
6782245e51
repo: add git_repository_wrap_odb() to wrap an ODB
...
Primarily useful when used together with git_odb_backend_one_pack().
2012-07-21 16:24:13 +02:00
Carlos Martín Nieto
507523c32f
odb: allow creating an ODB backend from a packfile index
...
git_odb_backend_one_packfile() allows us to create an ODB backend out
of an .idx file.
2012-07-21 16:23:49 +02:00
nulltoken
db9be9457d
object: introduce git_object_peel()
...
Partially fix #530
2012-07-17 20:32:40 +02:00
Vicent Marti
227f313119
attr: Rename the git_attr__
exports
...
Pevents collisions with the original libgit, which also exports those
exact symbols.
Fixes #822
2012-07-15 14:32:51 +02:00
Carlos Martín Nieto
1ebe432e2f
commit: properly export git_commit_nth_gen_ancestor()
2012-07-12 20:33:30 +02:00
Vicent Martí
dd4345b424
Merge pull request #789 from carlosmn/odb-foreach
...
odb: add git_odb_foreach()
2012-07-12 09:42:54 -07:00
Vicent Martí
0cf6b2f29e
Merge pull request #805 from nulltoken/fix/revwalk-email-parsing
...
Fix revwalk email parsing
2012-07-12 09:37:09 -07:00
Vicent Martí
db2d4061f6
Merge pull request #814 from nulltoken/topic/revparse-refac
...
Revparse refactoring: a start
2012-07-12 09:35:35 -07:00
Vicent Martí
48bcf81dd2
Merge pull request #812 from arrbee/assorted-tweaks
...
Assorted goodies
2012-07-12 09:32:44 -07:00
nulltoken
84f18e3587
refs: introduce git_reference_remote_tracking_from_branch()
2012-07-12 01:06:13 +02:00
nulltoken
b1aca6eae0
commit: introduce git_commit_nth_gen_ancestor()
2012-07-12 01:06:11 +02:00
nulltoken
8aedf1d558
signature: prevent angle bracket usage in identity
2012-07-11 20:40:13 +02:00
Vicent Martí
a13a30ac30
Merge pull request #801 from nulltoken/fix/ref-renaming
...
refs and revparse love <3
2012-07-11 05:29:51 -07:00
Russell Belfer
991a56c704
Add flag to write gitlink on setting repo workdir
...
This added a flag to the `git_repository_set_workdir()` function
that enables generation of a `.git` gitlink file that links the
new workdir to the parent repository. Essentially, the flag tells
the function to write out the changes to disk to permanently set
the workdir of the repository to the new path.
If you pass this flag as true, then setting the workdir to something
other than the default workdir (i.e. the parent of the .git repo
directory), will create a plain file named ".git" with the standard
gitlink contents "gitdir: <repo-path>", and also update the
"core.worktree" and "core.bare" config values.
Setting the workdir to the default repo workdir will clear the
core.worktree flag (but still permanently set core.bare to false).
BTW, the libgit2 API does not currently provide a function for
clearing the workdir and converting a non-bare repo into a bare one.
2012-07-10 23:19:47 -07:00
Russell Belfer
b3ff1dab31
Adding git_config_foreach_match() iteration fn
...
Adding a new config iteration function that let's you iterate
over just the config entries that match a particular regular
expression. The old foreach becomes a simple use of this with
an empty pattern.
This also fixes an apparent bug in the existing `git_config_foreach`
where returning a non-zero value from the iteration callback was
not correctly aborting the iteration and the returned value was
not being propogated back to the caller of foreach.
Added to tests to cover all these changes.
2012-07-10 23:19:47 -07:00
Russell Belfer
4d3a7b7846
Merge pull request #793 from libgit2/tree-entry-by-path
...
Bring back `entry_bypath`
2012-07-10 21:45:16 -07:00
Russell Belfer
19017a24e3
Merge pull request #797 from yorah/fix/inter-hunk-context
...
diff: make inter-hunk-context default value git-compliant
2012-07-10 16:24:17 -07:00
nulltoken
33c3370700
refs: deploy git_reference_has_log()
2012-07-07 12:15:29 +02:00
nulltoken
75261421ec
refs: add git_reference_has_log()
2012-07-07 12:15:28 +02:00
Kevin Sawicki
4ea7c8c666
Replace incorrect 'it' with 'if' in documentation
2012-07-03 12:35:33 -07:00
Carlos Martín Nieto
521aedad30
odb: add git_odb_foreach()
...
Go through each backend and list every objects that exists in
them. This allows fsck-like uses.
2012-07-03 12:50:51 +02:00
yorah
29f9186d1b
diff: make inter-hunk-context default value git-compliant
...
Default in git core is 0, not 3
2012-07-02 17:27:49 +02:00
Vicent Marti
46ea40d995
tree: Rename entry_copy
to entry_dup
2012-06-29 17:08:36 +02:00
Vicent Marti
0e2fcca850
tree: Bring back entry_bypath
...
Smaller, simpler, faster.
2012-06-29 02:21:12 +02:00