summaryrefslogtreecommitdiff
path: root/src/date.c
Commit message (Collapse)AuthorAgeFilesLines
* refactor: `src` is now `src/libgit2`Edward Thomson2022-02-221-898/+0
|
* Merge pull request #6095 from yoichi/better-compatiblity-for-at-time-notationEdward Thomson2021-12-231-2/+2
|\ | | | | Better revparse compatibility for at time notation
| * Merge branch 'main' into better-compatiblity-for-at-time-notationYoichi Nakayama2021-11-231-14/+8
| |\ | | | | | | | | | | | | Conflicts: src/revparse.c
| * | Cause error when date parsing is failedYoichi Nakayama2021-10-221-2/+2
| | |
* | | util: don't include unnecessary system librariesEdward Thomson2021-11-221-1/+0
| |/ |/| | | | | Remove some unnecessary includes from utility code.
* | date: rfc2822 formatting uses a `git_buf` instead of a static stringethomson/dateEdward Thomson2021-11-191-13/+7
| |
* | date: make it a proper `git_date` utility classEdward Thomson2021-11-181-2/+2
|/ | | | Instead of `git__date`, just use `git_date`.
* date: promote before multiplyethomson/fixupsEdward Thomson2021-08-301-1/+1
|
* Fix wrong time_t used in functionCalvin Buckley2021-07-061-1/+1
| | | | | | | This function doesn't interoperate with any system functions that use the system time_t, but rather only works with the git_time_t type in libgit2, which could be a different width than the system one. Fixes a compile warning.
* date: use GIT_ASSERTEdward Thomson2020-11-271-1/+2
|
* Introduce git__date_rfc2822_fmt. Allows for RFC2822 date headersJacques Germishuys2014-04-111-0/+28
|
* Use time(2) to get the timeEdward Thomson2013-08-191-7/+7
| | | | | | We didn't use the added precision in gettimeofday, so remove it. This prevents us from having an unnecessary reimplementation on win32.
* Unify whitespaces to tabsLinquize2013-05-151-3/+3
|
* Fix clang warnings and improve checksRussell Belfer2013-04-091-2/+2
|
* Remove use of English expletivesMartin Woodward2012-11-231-10/+10
| | | | | | Remove words such as fuck, crap, shit etc. Remove other potentially offensive words from comments. Tidy up other geopolicital terms in comments.
* Merge remote-tracking branch 'nulltoken/topic/amd64-compat' into developmentVicent Marti2012-08-021-20/+20
|\ | | | | | | | | | | | | Conflicts: src/netops.c src/netops.h src/oid.c
| * portability: Improve x86/amd64 compatibilitynulltoken2012-07-241-19/+19
|/
* misc: Fix warnings from PVS Studio trialVicent Martí2012-06-071-1/+1
|
* Rename posix wrappers with 'p_' prefix.Ben Straub2012-06-061-6/+6
|
* Move git__date_parse declaration to util.h.Ben Straub2012-06-061-1/+1
|
* Approxidate: use libgit2 naming/calling conventions.Ben Straub2012-05-301-18/+16
| | | | | Also use git_time_t (64-bit integer) for time values, although the 2038 problem is still present on 32-bit machines.
* Fix date.c build in msvc.Ben Straub2012-05-151-6/+13
| | | | | | Ported the win32 implementations of gmtime_r, localtime_r, and gettimeofday to be part of the posix compatibility layer, and fixed git_signature_now to use them.
* Rev-parse: @{time} syntax.Ben Straub2012-05-111-0/+871
Ported date.c (for approxidate_careful) from git.git revision aa39b85. Trimmed out the parts we're not using.