summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [cmake] Use CMAKE_SYSTEM_NAME to test the platform.Alexis Hildebrandt2015-07-281-2/+2
| | | | | | APPLE and CMAKE_HOST_APPLE only check the host system, whereas CMAKE_SYSTEM_NAME checks the target system when cross-compiling.
* Merge pull request #416 from tdsmith/python-exec-linkAlexis Hildebrandt2015-07-281-0/+3
|\ | | | | link ledger executable to Python on OS X
| * link ledger executable to PythonTim D. Smith2015-05-091-0/+3
| | | | | | | | | | Since the ledger executable embeds the Python interpreter, it does need an explicit link to a Python framework on OS X after all.
* | fix build for boost 1.58Johann Klähn2015-07-282-2/+2
| |
* | Convert boost::optional objects to bool explicitly.Jonathan Wakely2015-07-275-21/+5
| | | | | | | | Fixes #417.
* | enable access to item's position in python bindingsJohann Klähn2015-06-091-2/+12
| |
* | Revert "boost::none_t no longer convertible from literal 0 in 1.58"John Wiegley2015-05-175-5/+21
| | | | | | | | This reverts commit 48aec0f093ff6494a3e4f7cd5166cb4a27c16814.
* | Revert "fix build for boost 1.58"John Wiegley2015-05-172-2/+2
| | | | | | | | This reverts commit 68c9d649caa2c7c7f222613efe86576c379a5a7a.
* | fix build for boost 1.58Johann Klähn2015-05-102-2/+2
| |
* | boost::none_t no longer convertible from literal 0 in 1.58Johann Klähn2015-05-105-21/+5
|/ | | | Instead we use boost::none, which has been documented since boost 1.34.0.
* Add a --no-revalued optionJohn Wiegley2015-05-052-0/+5
|
* Use ./.ledgerrc if ~/.ledgerrc doesn't existDavid Sklar2015-04-271-4/+7
|
* Fix clang compile error (FreeBSD 10).Ilya T2015-03-132-7/+9
|
* Merge pull request #396 from thdox/auto-matchAlexis Hildebrandt2015-02-241-1/+1
|\ | | | | Fix Auto match
| * Fix sorting for option --auto-match.thdox2015-02-221-1/+1
| | | | | | | | | | | | See http://en.cppreference.com/w/cpp/algorithm/max_element and http://www.cplusplus.com/reference/algorithm/max_element/ The sorting for max requires < (and not >).
* | Fix alignment of cleared-format with 4 spaces as separator.thdox2015-02-231-1/+1
|/
* [ledger] Remove --cache optionAlexis Hildebrandt2015-02-1826-1222/+1
| | | | and all boost serialisation related code.
* [ledger] Remove --full-help optionAlexis Hildebrandt2015-02-182-4/+0
| | | | since it is the same as --help.
* [fix] Make trim function trim trailing whitespaceAlexis Hildebrandt2015-01-201-2/+2
| | | | | | std::isspace(*e) returns false for the end of c-string null-byte. Bugzilla: 1106
* Add pre-release info to --version outputAlexis Hildebrandt2015-01-202-0/+3
| | | | Bump version to 3.1.1-alpha.1
* [cmake] Minor cleanupAlexis Hildebrandt2015-01-201-1/+5
|
* Fix typoAlexis Hildebrandt2015-01-151-1/+1
|
* Fix -i short-option for --init-fileAlexis Hildebrandt2015-01-151-1/+1
| | | | | | Bugfix for #1102 Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
* [doc] Add CheckTests to ctestAlexis Hildebrandt2015-01-152-6/+0
| | | | | | | to check whether all available ledger options documented and are being tested. Signed-off-by: Alexis Hildebrandt <afh@surryhill.net>
* merge double fix + make changes minimalisticHans Erik van Elburg2015-01-041-12/+8
|
* also added cygwin tweak to src/CMakeLists.txtHans Erik van Elburg2015-01-031-2/+12
|
* Bugfix 1038: empty reg report for this month periodAlexis Hildebrandt2014-12-291-0/+5
| | | | | when year was specified with literal Y or year directive, but not when using apply year.
* Improve error handling when parsing year directivesAlexis Hildebrandt2014-12-281-9/+14
| | | | | | | A literal Y directive or ‘year’ directive with an empty or invalid argument, e.g. ‘2o14’ (that is a small letter ‘oh’ instead of a zero) would fail with the following rather unhelpful error message: Error: bad lexical cast: source type value could not be interpreted as target
* Fix plain year directiveAlexis Hildebrandt2014-12-281-0/+7
| | | | Only Y2014 or apply year 2014 would actually set the year for the following transactions; year 2014 would silently do nothing.
* Use same license text formatting in source filesAlexis Hildebrandt2014-12-273-6/+6
|
* Bump copyright notice to 2015Alexis Hildebrandt2014-12-27128-129/+129
| | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/"
* Correct no-python error messagesAlexis Hildebrandt2014-12-251-2/+2
| | | | [ci skip]
* Fix crash when using --trace 10 or aboveAlexis Hildebrandt2014-12-233-3/+3
| | | | | uint8_t is typedef'd to char, thus boost::lexical_cast treats it as such instead of a number.
* Fix crash when using -M with empty resultAlexis Hildebrandt2014-12-161-1/+1
| | | | | | | ledger -f /dev/null reg -M test causes a segmentation fault, see bug 730 and duplicates 1080 and 1084 for details. Kudos to Ikke for helping with debugging.
* Fix off by one error in textual.ccAdrian Lang2014-12-111-1/+1
| | | This fixes parsing of transactions with single-character payees and comments.
* support date as well as datetime in Balance.value()Christophe Rhodes2014-12-011-0/+6
| | | | cargo-cut'n'paste from py_amount.cc
* Improve Embedded Python SupportELIPTUS2014-11-125-3/+35
| | | | | Discussion: https://groups.google.com/d/msg/ledger-cli/kq9sKoRX9vw/fmyhvPslzokJ
* make --columns default to terminal width, as returned by ioctl()Stefano Zacchiroli2014-10-133-0/+19
| | | | | | | | | | | If set, the COLUMNS environment variable will take precedence over terminal width. However, please note that COLUMNS is usually *not* exported by shells to child processes, so in most cases COLUMNS will be undefined for ledger---hence the motivation for this change. Terminal width is queried using ioctl() on stdin. For the sake of portability the querying is done only on platform where ioctl() is detected as supported at compile-time.
* Add ISO 8601 date as recognized date stringMartin Michlmayr2014-10-021-0/+1
| | | | | | | | Dates specified via --begin and --end are converted to a value expression using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by ledger. Bug fix for #1072
* Fix period expression parsing for month to month without yearMartin Michlmayr2014-10-021-2/+1
| | | | Bug fix for #1074, a regression introduced by the fix for bug #375
* minor spelling fixesCarlos E. Garcia2014-09-151-1/+1
|
* "mispelled" was misspelledJoseph Mornin2014-09-081-1/+1
|
* #if guards for boost 1.56 compatibilityJoe Gallo2014-08-285-0/+21
|
* Revert "fix "no viable conversion from ... to 'bool'""John Wiegley2014-08-274-4/+4
| | | | This reverts commit df9ae3ab9b37fde803f26c6bc4eaadfd67fc1d07.
* Revert "fix "type 'char' cannot be used prior to '::'""John Wiegley2014-08-271-1/+1
| | | | This reverts commit 38557ee63273dcdef22b136c5f424802c7ff6e03.
* fix "type 'char' cannot be used prior to '::'"Joe Gallo2014-08-261-1/+1
|
* fix "no viable conversion from ... to 'bool'"Joe Gallo2014-08-264-4/+4
|
* fix rare bug in balance report output if the budgeted amount happens to be zero.Craig Earls2014-08-241-2/+2
| | | | See emails in group from John Rakestraw circa November 2011
* Preserve the given cost for printMartin Michlmayr2014-07-143-3/+6
| | | | Patch from John Wiegley
* Preserve original cost basis when gain or loss is madeMartin Michlmayr2014-07-141-2/+4
| | | | | | | | | | | | | | | | | | Change the definition of cost: in the past, if you bought 1 AAA for $10 and then sold it for $12, ledger would take $12 as the cost. With the patch, the original cost of $10 is preserved ss the cost basis. In my opinion, this brings ledger in line with accounting expectations. This change fixes bugs #712 and #713. Bug #712 is about Equity:Capital Gains and Equity:Capital Loss entries ledger automatically generates that are in my opinion incorrect. Bug #713 is about strange behaviour with -B after a capital gain or loss is made. Patch from John Wiegley.