summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* [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.
* Unify debugging categoriesMartin Michlmayr2014-07-013-10/+10
| | | | | Debugging categories follow the filename, which in this case is singular (rather than plural) "account" and "amount".
* When a status flag (! or *) is explicitly specified for an individual ↵Max Satula2014-06-301-2/+1
| | | | posting, it always has a priority over entire transaction status.
* Fix Bug 1057: Emacs output does not escape special characters.Craig Earls2014-06-262-74/+81
|
* Don't lose commodity when cost is not separated by whitespaceMartin Michlmayr2014-06-051-3/+2
| | | | | | | | When a cost was specified without a whitespace after the @ symbol, as in @$5.01, this was incorrectly parsed as 5.01 (losing the commodity) rather than $5.01. Bug fix for #1050
* Improve backwards compatibility with ledger2Martin Michlmayr2014-05-301-5/+6
| | | | | | | This brings some single character format strings in line with what they actually meant in ledger2. Bug fix for #755
* Recognize --cleared-format optionMartin Michlmayr2014-05-301-0/+1
| | | | Bug fix for #747
* Fix query string for select accountMartin Michlmayr2014-05-301-4/+4
| | | | | | | A wrong query string was generated by "select account": one ansify_if() too much was listed and justify() was called with the wrong parameters. Bug fix for #744
* Move the debug statement to where it makes more senseMartin Michlmayr2014-05-301-2/+1
| | | | | | It's possible to just say "select account" without a "from", so put the debug statement at the end of the block where the variable "formatter" is filled with the query string.
* Handle POST_COST_VIRTUAL in printMartin Michlmayr2014-05-301-2/+10
| | | | Bug fix for #1046
* Check whether a month is followed by a yearMartin Michlmayr2014-05-301-0/+11
| | | | Bug fix for #375
* Cosmetic change - format code consistentlyMartin Michlmayr2014-05-188-25/+25
| | | | | Add a space between if and the opening bracket, between a closing round bracket and the following opening curly bracket, etc.
* Fix bug introduced by commit AA2FF2Bthdox2014-05-171-4/+3
| | | | Correction is to not use uninitialized amount
* Ensure that high-levels directives have arguments if they need oneMartin Michlmayr2014-05-141-0/+8
| | | | | Ensure that high-levels directives, such as account, alias and commodity, have arguments if they need one. Bug fix for #1036
* Ensure that directives have arguments if they need oneMartin Michlmayr2014-05-141-0/+11
| | | | | Ensure that account, commodity and payee directives have arguments if they need one. Bug fix for #785
* Remove trailing whitespace from error messagesMartin Michlmayr2014-05-133-4/+4
| | | | Fix for bug #867
* Merge pull request #289 from csrhodes/payee-uuid-mappingJohn Wiegley2014-05-134-39/+63
|\ | | | | Payee uuid mapping