# %> idid work 2015-01-01 '... bla bla #tag @mention ...'
        # results in a logg entry in the 'work' datastore for $DATE (by user)

        # author_date = '2015-01-01T01:01:01'
        # record = 'Did something AMAZING! [#id] #did'

        # info about specifying a specific date for the committ
        # http://stackoverflow.com/a/3898842/1289080
        # Each commit has two dates: the author date and the committer date.

        # commit the record and update the commit date to
        # r.git.commit(m=record, date=author_date, allow_empty=True)

def _logg_record(self, record, date):
        """
        # %> idid work 2015-01-01 '... bla bla #tag @mention ...'
        # results in a logg entry in the 'work' datastore for $DATE (by user)

        # author_date = '2015-01-01T01:01:01'
        # record = 'Did something AMAZING! [#id] #did'

        # info about specifying a specific date for the committ
        # http://stackoverflow.com/a/3898842/1289080
        # Each commit has two dates: the author date and the committer date.

        # commit the record and update the commit date to
        # r.git.commit(m=record, date=author_date, allow_empty=True)
        """
        # FIXME: take emails from config (extracted in CLI already)
        # FIXME: extract out the possible dates and other tokens
        # FIXME: check that we're using the write dates here...
        # FIXME: check if it isn't a duplicate... of the previous
        # and abort usless it's forced
        #
        # git date option needs HH:MM:SS +0000 specified too or it will assume
        # current time values instead of 00:00:00
        #
        # When passing this I get a commit on
        #  Date: Thu Jan 1 09:32:32 2015 +0100
        # when just passing utcnow() i get
        #  Date: Sun Oct 11 08:31:51 2015 +0200
        # according to my clock (CET; +0200) it's Oct 11 10:33:...

        # Make absolutely sure we have a git 1.8+ compatible date format!
        date = Date(date, fmt=DT_GIT_FMT)
        # Build dict for sending as args to the git commend
        # -- or null says we want to open our editor to edit the commit msg

        try:
            result = self._commit(self._journal, record, date)
        except KeyboardInterrupt as err:
            log.error('Error encountered during git commit: {0}'.format(err))
            raise SystemExit('\n\n')

        # FIXME #########
        # LOAD SYNC_TO options from config PER JOURNAL
        # ie, sync to remote (friends) journals too
        # ENABLE syncing to multiple (remotee) branches
        # sync_to = None
        # if sync_to:
        #    # sync/backup branch (eg, master or remote)
        #    log.info(' ... ... also syncing to: {0}'.format(sync_to))
        #    record = '{0} [{1}]'.format(record, self._journal)
        #    result_sync = self._commit(record, date)
        #    log.debug(" ... ... record committed\n{0}".format(result_sync))

        return result