Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 19, 2010
  1. clock: allow custom commit messages for edits

    authored
    Clocking in and out are fairly self-explanatory. But edits
    generally require a message explaining why the usual cycle
    was broken.
  2. clock: refactor command-specific logic

    authored
    Until now, the only interesting property of a command was
    whether it was a mutator. However, that will change in the
    next commit. Restructure the code to handle other
    properties.
Commits on Feb 2, 2010
  1. clock: respect TIMECARD_HOME for data location

    authored
    Besides simply allowing alternate locations, it allows you
    to keep multiple timecards using aliases.
Commits on Dec 15, 2009
  1. remove Editor.pm

    authored
    Recent mfm now has this as a module.
Commits on Dec 14, 2009
  1. add MFM-PERLLIB

    authored
    The 'caseless' branch of mfm is now configurable; we need to
    actually tell it we want the alternate lib directory.
Commits on Nov 12, 2009
  1. convert MFM infrastructure to caseless branch

    authored
    This should allow building on case-insensitive filesystems.
Commits on Nov 6, 2009
  1. TimeSlot: make sure comments always exists

    authored
    When reading a slot with no comments from a file, we left
    the 'comments' field undefined, when it should have been an
    empty array ref. This could lead to a run-time perl error.
    Hurray for Perl.
Commits on Nov 5, 2009
  1. show inprogress duration for timecard summary

    authored
    It is nice for double-checking that you have been punched in
    a reasonable amount of time. It's also a nice motivator to
    see it going up.
  2. refactor "hours" printing

    authored
    This gives us a helper function as part of
    DateTime::Duration. It is perhaps a bit ugly to be adding
    methods onto somebody else's object, but it makes the usage
    much nicer.
  3. add README

    authored
  4. add 'clock' script

    authored
    This wraps the timecard program to provide a
    pseudo-"distributed" timecard. We use a git repository to
    push and pull changes from a central location, which should
    notice any problems with multiple simultaneous updates
    (though it will do nothing but just barf and let you fix up
    the result yourself, so you do need to be at least a little
    bit git-competent).
  5. respect TIMECARD environment variable

    authored
    This lets you use a different timecard than the default, in
    preparation for putting the file into a repository
    directory.
  6. rename 'clock' to 'timecard'

    authored
    I want the clock script to do more things that aren't really
    timecard-specific, so let's fork off that bit of
    functionality into its own script. Arguably, timecard is a
    better name, anyway.
Commits on Nov 2, 2009
  1. make "clock" without arguments meaningful

    authored
    It just shows whether you're punched in or not. Handy if you
    think you might have forgotten.
Commits on Oct 21, 2009
  1. add 'list' subcommand

    authored
    The 'sum' subcommand will tell you the total hours, but
    sometimes it is nice to see a breakdown by task cluster of
    what actually happened.
  2. detect backwards time

    authored
    It is easy when crossing day boundaries to change a time,
    but not a day, and then end up ending a task half a day
    before it started. Let's flag this error instead of just
    producing a totally bogus duration.
  3. fix bug with summing inprogress times

    authored
    This caused a perl exception. The problem was that we were
    feeding a string time for 'now' into a DateTime::Duration
    subtraction.
  4. add 'comment' subcommand

    authored
    Handy for updating the entry as you do tasks, rather than
    remembering at the end when you clock out.
  5. TimeCard: factor out method for current open timeslot

    authored
    This will be handy for other things that modify the open
    slot, like a 'comment' command.
  6. fix bug with missing output comments

    authored
    Doing "clock out foo" would fail to write out the "foo"
    comment.  This was caused by a typo in the hash element
    name. Huzzah for dynamic structs!
Commits on Oct 15, 2009
  1. add 'sum' subcommand

    authored
    This actually tallies up a timecard. Handy for submitting
    billing.
  2. initial commit of clock

    authored
    This is a very simple timekeeper program. It stores time
    slots in a text file, and is only moderately less work than
    editing the file by hand. You can do:
    
      $ clock in some comments on what you are doing
      $ clock out some more comments if you want
Something went wrong with that request. Please try again.