summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Bump copyright information to 2013John Wiegley2013-02-18128-129/+129
|
* Fixed bug with --day-break optionJohn Wiegley2013-02-051-4/+2
|
* Bump format parsing buffer to 64KJohn Wiegley2013-02-031-1/+1
|
* Fixes bug 377. Ledger now complains if it is given only a directory as input.Craig Earls2013-02-021-1/+1
|
* Fix bug 795 858, printing "(null)" instead of empty string ""Craig Earls2013-02-021-1/+1
|
* Removed an unnecessary if. Fixes #140John Wiegley2013-01-311-2/+1
|
* Merge pull request #140 from enderw88/Bug634-floor-ceil-roundCraig Earls2013-01-307-14/+70
|\ | | | | Bug 634 Added roundto function, optimized floor and ceiling
| * Bug 634 Added roundto function, optimized floor and ceilingCraig Earls2013-01-307-14/+70
| | | | | | | | Fixes Bug634 by adding roundto(amount, places).
* | Added missing call to timelog.close()John Wiegley2013-01-301-0/+4
|/
* Fixed problem finding the default priced file.Craig Earls2013-01-291-7/+8
| | | | Bug fix to detect badly specified priced files on the command line didn't handle the default correctly.
* Fixes regression error introduced by tags command patchCraig Earls2013-01-291-5/+10
| | | | Not sure how the changes to the options got into the repot.cc file, but this takes the changes out.
* Merge pull request #132 from enderw88/bug514-sort-accounts-and-commoditiesJohn Wiegley2013-01-293-2/+16
|\ | | | | Fixes bug 514. accounts and commodities output now sorts
| * Fixes bug 514. accounts and commodities output now sortsCraig Earls2013-01-293-2/+16
| | | | | | | | updated tests included.
* | Merge pull request #131 from enderw88/add-tags-commandJohn Wiegley2013-01-294-10/+67
|\ \ | | | | | | Addes tags command and --values option
| * | Addes tags command and --values optionCraig Earls2013-01-294-10/+67
| |/ | | | | | | | | Tags command reports all metadat tags in use. With the values option it reports tags and their values.
* | Merge pull request #107 from afh/pull/time_colonJohn Wiegley2013-01-295-3/+32
|\ \ | | | | | | Add --time-colon option
| * | Add --time-colon optionAlexis Hildebrandt2012-11-105-3/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | The --time-colon option will display the value for a seconds based commodity as real hours and minutes. For example 8100 seconds by default will be displayed as 2.25 whereas with the --time-colon option they will be displayed as 2:15.
* | | Fixes bugs 705 and 862. Ledger now fails if init or pricedb files are ↵Craig Earls2013-01-293-22/+43
| |/ |/| | | | | specified on the command line but not found.
* | Merge branch 'master' into nextJohann Klähn2013-01-181-3/+5
|\ \ | | | | | | | | | | | | | | | Some commits were on the master branch but not yet on the next branch due to a pull request to master after those two branches diverged. This merge ensures that next ⊇ master.
| * | ignore extra fields when converting csv filesJohann Klähn2012-10-131-1/+1
| | | | | | | | | | | | This fixes bug #736.
| * | ignore (some) empty field when converting csvJohann Klähn2012-10-131-2/+4
| | | | | | | | | | | | This fixes bug #733 and bug #734.
* | | change handling of standard inputJohann Klähn2013-01-173-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For `-f /dev/stdin`, the `pathname` of the parsing context will be empty as for any other streamed input. `instance_t::include_directive` did not work as expected for `-f /dev/stdin` and relative file names. One would expect them to be relative to the current directory rather than `/dev`. This will lead to `While parsing file ""` messages. This could be adjusted to read `While parsing standard input`, but maybe it's not worth the special cases. This commit also fixes bug 788: behaviour of source_context for '-f -'
* | | Revert "Bug551 fixed, commodities and accounts now sort"John Wiegley2013-01-163-16/+2
| | | | | | | | | | | | This reverts commit 67a598f6ff3b9b19b08af108c8bfe26064728457.
* | | Revert "fix bug 788: behaviour of source_context for '-f -'"John Wiegley2013-01-162-2/+1
| | | | | | | | | | | | This reverts commit 0a1ff035421d5f97675ad769a7fcdbc68399f3dc.
* | | whitespace cleanupJohann Klähn2013-01-165-15/+15
| | |
* | | Merge pull request #122 from enderw88/Lisp-fixesJohn Wiegley2013-01-163-2/+16
|\ \ \ | | | | | | | | Fix ledger-add-entry
| * \ \ Merge remote-tracking branch 'upstream/next' into nextCraig Earls2013-01-142-2/+14
| |\ \ \
| * | | | Bug551 fixed, commodities and accounts now sortCraig Earls2013-01-073-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added two compare structs for std::map to use. I tried to override the < operator got a clean compile but map wasn't picking it up, I couldn't figure out why so I took the less elegant route.
* | | | | fix bug 748: option aliases not recognizedJohann Klähn2013-01-151-4/+11
| | | | |
* | | | | fix bug 788: behaviour of source_context for '-f -'Johann Klähn2013-01-152-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `session_t::read_data` did not set context.pathname to `/dev/stdin` for the special case `-f -`. I chose to adjust `source_context` too as there is no sensible context if no file name is provided.
* | | | | remove superfluous 'break'Johann Klähn2013-01-151-1/+0
| | | | |
* | | | | fix for 'store absolute paths internally'Johann Klähn2013-01-151-1/+1
| |/ / / |/| | | | | | | | | | | | | | | `parent_path` was called on unprocessed path so neither `resolve_path` nor `filesystem::absolute` had any effect.
* | | | Improvement to account alias expansionJohn Wiegley2013-01-111-1/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Aliases are now expanded not only if they occur by themselves, but also if they occur as the beginning of a multi-part account. Given <alias Food=Expenses:Food> the account <Food:Tomatos> should now be expanded to <Expenses:Food:Tomatos>.
* | | | Guard against a possible NULLJohn Wiegley2013-01-111-1/+2
|/ / /
* | | Merge branch 'next' of github.com:ledger/ledger into nextJohn Wiegley2012-11-261-2/+4
|\ \ \
| * | | Fix crash when accessing the transaction code via post.xact.code using pythonAlexis Hildebrandt2012-11-191-2/+4
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | ledger would abort with the following error message: TypeError: No Python class registered for C++ class boost::optional<std::string> The changes pass a CallPolicy to make_getter when adding the transaction code property for python, so that the correct to_python conversion is made. For details see: http://www.boost.org/doc/libs/1_52_0/libs/python/doc/v2/faq.html#topythonconversionfailed
* | | Shorten debug commentJohn Wiegley2012-11-231-1/+1
| | |
* | | Properly handle metadata tags on auto-postingsJohn Wiegley2012-11-122-7/+22
| | |
* | | Account names in auto-xacts can be format stringsJohn Wiegley2012-11-121-0/+9
|/ /
* | right-justify amount_expr text in print report where possibleChristophe Rhodes2012-11-061-6/+7
| |
* | fix comment in display_filter_posts::output_rounding(post_t)Christophe Rhodes2012-11-061-3/+5
| | | | | | | | | | slightly more detail in the case of zero display_amount and --empty not specified.
* | Guard against global_scope being NULLJohn Wiegley2012-10-311-1/+2
| |
* | Merge pull request #97 from enderw88/Bug726-727-draft-and-lisp-commandJohn Wiegley2012-10-311-2/+9
|\ \ | | | | | | Added "draft" and "lisp" command synonyms
| * | Added missing break; statement in report.ccCraig Earls2012-10-261-0/+1
| | |
| * | Added "draft" and "lisp" command synonymsCraig Earls2012-10-261-2/+8
| | |
* | | Corrected a typoJohn Wiegley2012-10-311-2/+2
| | |
* | | Merge pull request #96 from enderw88/Bug634-floor-ceil-roundJohn Wiegley2012-10-267-3/+78
|\| | | | | | | | Bug 634 and 488, Corrected behavior of floor, and added ceiling
| * | Bug 634 and 488, Corrected behavior of floor, and added ceilingCraig Earls2012-10-257-3/+78
| | | | | | | | | | | | This is only a partial fix for 634, since rounding is not fixed.
* | | Merge pull request #95 from enderw88/Bug695-init-fileJohn Wiegley2012-10-255-5/+47
|\| | | | | | | | Bug695 init file
| * | Fixes Bug 695, ledger ignores --init-fileCraig Earls2012-10-253-4/+18
| | | | | | | | | | | | | | | | | | Handle --init-file as a special command option like the debug options. That wway we can have the argument captured before teh global scope is created.