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
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
Michael Schubert
0aeae70553
tests-clar/status: fix missing-prototype warning
2012-07-25 17:01:50 +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
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
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
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
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
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
14e1bc157a
tests: plug a leak in the config stress
2012-07-21 17:55:35 +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
5d9cfa07ac
config: escape subsection names when creating them
...
This allows us to set options like "some.foo\\ish.var".
This closes #830
2012-07-21 02:28:46 +02:00
Russell Belfer
71d2735837
Fix bug with merging diffs with null options
...
A diff that is created with a NULL options parameter could result
in a NULL prefix string, but diff merge was unconditionally
strdup'ing it. I added a test to replicate the issue and then a
new method that does the right thing with NULL values.
2012-07-19 10:23:45 -07:00
nulltoken
db9be9457d
object: introduce git_object_peel()
...
Partially fix #530
2012-07-17 20:32:40 +02:00
nulltoken
d448392e5d
revparse: extend test coverage
2012-07-15 18:41:55 +02:00
nulltoken
b0f1533867
revparse: add reflog test data
2012-07-15 18:41:54 +02:00
nulltoken
d1b7921a48
revparse: fix disambiguation of refs and abbrev oids
2012-07-12 22:30:00 +02:00
nulltoken
bb89cf9478
revparse: simplify handling of the colon syntax
2012-07-12 22:29:58 +02:00
nulltoken
dc1f4b32d3
tree: unfound tree entry returns GIT_ENOTFOUND
2012-07-12 22:29:55 +02:00
Russell Belfer
465092ce3f
Fix memory leak in test
2012-07-12 11:56:50 -07:00
Carlos Martín Nieto
eca67c585e
tests: fix git_odb_foreach() object count
...
Some objects were added in another PR
2012-07-12 20:40:09 +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
874303d468
refs: readonly tests don't need a sandboxed repo
2012-07-12 01:06:12 +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
nulltoken
118cf57d42
revwalk: relax the parsing of the commit time
2012-07-11 20:40:12 +02:00
nulltoken
5b07111529
tests: add test commit with angle brackets in the author name
2012-07-11 20:40:12 +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