Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | revparse: do look at all refs when matching text | Carlos Martín Nieto | 2014-02-05 | 1 | -2/+1 |
| | | | | | Now that we no longer fail to push non-commits on a glob, let's search on all refs when we rev-parse syntax asks us to match text. | ||||
* | git_reflog_entry_message can be null | Linquize | 2014-01-20 | 1 | -0/+2 |
| | |||||
* | reflog: move the reflog implementation into refdb_fs | Carlos Martín Nieto | 2013-10-02 | 1 | -2/+2 |
| | | | | | | | | | | References and their logs are logically coupled, let's make it so in the code by moving the fs-based reflog implementation to live next to the fs-based refs one. As part of the change, make the function take names rather than references, as only the names are relevant when looking up and handling reflogs. | ||||
* | errors: Fix format of some error messages | nulltoken | 2013-09-11 | 1 | -1/+1 |
| | |||||
* | revparse: Simplify error handling | nulltoken | 2013-09-07 | 1 | -11/+3 |
| | |||||
* | revparse: Prevent unnecessary odb backend calls | nulltoken | 2013-09-07 | 1 | -6/+3 |
| | |||||
* | Revparse does not handle refspecs | Carlos Martín Nieto | 2013-08-19 | 1 | -1/+1 |
| | |||||
* | revparse: Use more idiomatic error value test | Evan Hanson | 2013-08-15 | 1 | -1/+1 |
| | |||||
* | revparse: Free left side of invalid range revspecs | Evan Hanson | 2013-08-15 | 1 | -7/+3 |
| | | | | | | This fixes a small memory leak in git_revparse where early returns on errors from git_revparse_single cause a free() on the (reallocated) left side of the revspec to be skipped. | ||||
* | revparse: Don't return a reference when asked for a git object | nulltoken | 2013-07-13 | 1 | -0/+13 |
| | | | | Fix #1722 | ||||
* | Fix Windows warnings | Russell Belfer | 2013-06-12 | 1 | -2/+4 |
| | | | | | This fixes problems with missing function prototypes and 64-bit data issues on Windows. | ||||
* | revparse: Make revparse_ext() return git_reference from names as well | nulltoken | 2013-05-16 | 1 | -14/+23 |
| | |||||
* | revparse: Introduce git_revparse_ext() | nulltoken | 2013-05-16 | 1 | -5/+60 |
| | | | | | | Expose a way to retrieve, along with the target git_object, the reference pointed at by some revparse expression (`@{<-n>}` or `<branchname>@{upstream}` syntax). | ||||
* | revparse: Simplify temporary reference freeing | nulltoken | 2013-05-16 | 1 | -13/+7 |
| | |||||
* | Fix trailing whitespaces | nulltoken | 2013-05-15 | 1 | -1/+0 |
| | |||||
* | Expose git_reference_dwim | Carlos Martín Nieto | 2013-05-07 | 1 | -65/+4 |
| | | | | | Extract this function out of the rev-parse code to be able to DWIM a reference instead of its target. | ||||
* | Fix one error not reported in revparse | Russell Belfer | 2013-05-01 | 1 | -1/+8 |
| | | | | | | | There are many paths through revparse that may return an error code without reporting an error, I believe. This fixes one of them. Because of the backtracking in revparse, it is pretty complicated to fix the others. | ||||
* | Fix uninitialized var warnings | Russell Belfer | 2013-04-18 | 1 | -1/+1 |
| | |||||
* | git_revision -> git_revspec | Vicent Marti | 2013-04-15 | 1 | -9/+9 |
| | |||||
* | Is this crazy? | Vicent Marti | 2013-04-15 | 1 | -18/+14 |
| | |||||
* | Merge remote-tracking branch 'ben/unified-revparse' into development | Vicent Marti | 2013-04-15 | 1 | -22/+44 |
|\ | |||||
| * | Change git_revparse to output git_object pointers | Ben Straub | 2013-04-15 | 1 | -13/+8 |
| | | | | | | | | This will probably prevent many lookup/free operations in calling code. | ||||
| * | Reintroduce git_revparse_single. | Ben Straub | 2013-04-15 | 1 | -1/+1 |
| | | |||||
| * | Deprecate git_revparse_single and _rangelike | Ben Straub | 2013-04-09 | 1 | -26/+1 |
| | | |||||
| * | Implement unified git_revparse | Ben Straub | 2013-04-08 | 1 | -6/+58 |
| | | |||||
* | | Merge pull request #1450 from carlosmn/branch-upstream | Vicent Martí | 2013-04-11 | 1 | -1/+1 |
|\ \ | | | | | | | Branch upstream configuration | ||||
| * | | branch: rename 'tracking' to 'upstream' | Carlos Martín Nieto | 2013-03-30 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | The term 'tracking' is overloaded. Help distinguish what we mean by using 'upstream' for this part of the library. | ||||
* | | | object: Export git_object_dup | Vicent Marti | 2013-04-10 | 1 | -1/+1 |
| |/ |/| | |||||
* | | Merge remote-tracking branch 'gnprice/revwalk' into development | Vicent Marti | 2013-04-07 | 1 | -0/+25 |
|\ \ | |/ |/| | |||||
| * | revparse: Parse range-like syntax | Greg Price | 2013-04-06 | 1 | -0/+25 |
| | | | | | | | | Signed-off-by: Greg Price <price@mit.edu> | ||||
* | | Several warnings detected by static code analyzer fixed | Arkadiy Shapkin | 2013-03-18 | 1 | -3/+3 |
| | | | | | | | | | | | | | | Implicit type conversion argument of function to size_t type Suspicious sequence of types castings: size_t -> int -> size_t Consider reviewing the expression of the 'A = B == C' kind. The expression is calculated as following: 'A = (B == C)' Unsigned type is never < 0 | ||||
* | | immutable references and a pluggable ref database | Edward Thomson | 2013-03-07 | 1 | -1/+2 |
|/ | |||||
* | revparse: Lookup sha before branch | nulltoken | 2013-02-03 | 1 | -6/+29 |
| | |||||
* | revparse: Lookup branch before described tag | nulltoken | 2013-02-03 | 1 | -7/+7 |
| | | | | Fix #1306 | ||||
* | update copyrights | Edward Thomson | 2013-01-08 | 1 | -1/+1 |
| | |||||
* | revparse: Deploy EINVALIDSPEC usage | nulltoken | 2012-12-01 | 1 | -39/+46 |
| | |||||
* | Fix warnings on Win64 build | Russell Belfer | 2012-11-27 | 1 | -20/+19 |
| | |||||
* | Rename ref and reflog apis for consistency | Ben Straub | 2012-11-27 | 1 | -6/+6 |
| | |||||
* | Fix a couple of warnings | Michael Schubert | 2012-11-18 | 1 | -1/+1 |
| | |||||
* | reflog: make entry_byindex() and drop() git compliant | nulltoken | 2012-11-17 | 1 | -3/+3 |
| | | | | | Passing 0 as the index now retrieves the most recent entry instead of the oldest one. | ||||
* | revparse: properly handle refnames containing a @ | nulltoken | 2012-10-18 | 1 | -10/+14 |
| | | | | Fix #994 | ||||
* | refs: use constants for well-known names | nulltoken | 2012-10-07 | 1 | -6/+6 |
| | |||||
* | refs: introduce git_reference_is_valid_name() | nulltoken | 2012-09-25 | 1 | -0/+5 |
| | |||||
* | Diff iterators | Russell Belfer | 2012-09-05 | 1 | -1/+1 |
| | | | | | | | | | | | This refactors the diff output code so that an iterator object can be used to traverse and generate the diffs, instead of just the `foreach()` style with callbacks. The code has been rearranged so that the two styles can still share most functions. This also replaces `GIT_REVWALKOVER` with `GIT_ITEROVER` and uses that as a common error code for marking the end of iteration when using a iterator style of object. | ||||
* | Merge remote-tracking branch 'nulltoken/topic/amd64-compat' into development | Vicent Marti | 2012-08-02 | 1 | -7/+7 |
|\ | | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/oid.c | ||||
| * | portability: Improve x86/amd64 compatibility | nulltoken | 2012-07-24 | 1 | -7/+7 |
| | | |||||
* | | branch: introduce git_branch_tracking() | nulltoken | 2012-07-24 | 1 | -1/+1 |
|/ | |||||
* | revparse: initialize 'parsed' in case the user doesn't give a number with ↵ | Carlos Martín Nieto | 2012-07-23 | 1 | -1/+1 |
| | | | | the @-notation | ||||
* | revparse: don't allow an empty string | Carlos Martín Nieto | 2012-07-23 | 1 | -3/+3 |
| | | | | | Asking the library for "" used to give HEAD, but that's trying to impose a default at the wrong layer. Make it fail. | ||||
* | revparse: deploy git_object_peel() | nulltoken | 2012-07-17 | 1 | -55/+4 |
| |