def _get_update_files(args):
    if args.files and args.git:
        error("invalid invocation", "-g and -f are exclusive.", 19)
    if args.files:
        files = args.files
    else:
        if not args.git:
            args.git = '.'
        f = actions.get_last_commit_update(args.git)
        files = [os.path.join(args.git, f)]
    return files