1% Generated by roxygen2: do not edit by hand 2% Please edit documentation in R/diff.R 3\name{git_diff} 4\alias{git_diff} 5\alias{git_diff_patch} 6\title{Git Diff} 7\usage{ 8git_diff(ref = NULL, repo = ".") 9 10git_diff_patch(ref = NULL, repo = ".") 11} 12\arguments{ 13\item{ref}{a reference such as \code{"HEAD"}, or a commit id, or \code{NULL} 14to the diff the working directory against the repository index.} 15 16\item{repo}{The path to the git repository. If the directory is not a 17repository, parent directories are considered (see \link{git_find}). To disable 18this search, provide the filepath protected with \code{\link[=I]{I()}}. When using this 19parameter, always explicitly call by name (i.e. \verb{repo = }) because future 20versions of gert may have additional parameters.} 21} 22\description{ 23View changes in a commit or in the current working directory. 24} 25\seealso{ 26Other git: 27\code{\link{git_archive}}, 28\code{\link{git_branch}()}, 29\code{\link{git_commit}()}, 30\code{\link{git_config}()}, 31\code{\link{git_fetch}()}, 32\code{\link{git_merge}()}, 33\code{\link{git_rebase}()}, 34\code{\link{git_remote}}, 35\code{\link{git_repo}}, 36\code{\link{git_signature}()}, 37\code{\link{git_stash}}, 38\code{\link{git_tag}} 39} 40\concept{git} 41