code: func getHistoryRewriter(cmd *cobra.Command, db *gitobj.ObjectDatabase, l *tasklog.Logger) *githistory.Rewriter {
  	include, exclude := getIncludeExcludeArgs(cmd)
  	filter := buildFilepathFilter(cfg, include, exclude)
  
  	return githistory.NewRewriter(db,
  		githistory.WithFilter(filter), githistory.WithLogger(l))
  }
docs: // getHistoryRewriter returns a history rewriter that includes the filepath
  // filter given by the --include and --exclude arguments.