Lines Matching full:if

30  * The method will automatically detect if 'path' is a normal
66 * if nothing has been found. The lookup ends when the first repository
70 * The method will automatically detect if the repository is bare
71 * (if there is a repository).
78 * @param across_fs If true, then the lookup will not stop when a
100 * Only open the repository if it can be immediately found in the
110 * "/home/user/source/" will not return "/.git/" as the found repo if
124 * only open the repository if start_path itself points to the git
132 * If set, `git_repository_open_ext` will ignore the other flags and
141 * `git_repository_open_ext` with this flag will error out if either
151 * actually be NULL if you only want to use the error code to
152 * see if a repo at this path could be opened.
153 * @param path Path to open as git repository. If the flags
155 * inside the working directory of the repository. May be NULL if
161 * @return 0 on success, GIT_ENOTFOUND if no repository could be found,
162 * or -1 if there was a repository but open failed for some reason
175 * if you're e.g. hosting git repositories and need to access them
193 * @param repo repository handle to close. If NULL nothing occurs.
205 * @param is_bare if true, a Git repository without a working directory is
206 * created at the pointed path. If false, provided path will be
226 * * NO_REINIT - Return an GIT_EEXISTS error if the repo_path appears to
229 * path for non-bare repos (if it is not already there), but
239 * looking the "template_path" from the options if set, or the
240 * `init.templatedir` global config if not, or falling back on
241 * "/usr/share/git-core/templates" if it exists.
242 * * GIT_REPOSITORY_INIT_RELATIVE_GITLINK - If an alternate workdir is
284 * repo_path parent on non-bare repos). IF THIS IS RELATIVE PATH,
285 * IT WILL BE EVALUATED RELATIVE TO THE REPO_PATH. If this is not
288 * * description - If set, this will be used to initialize the "description"
291 * this contains the path to use for the template directory. If
294 * * initial_head - The name of the head to point HEAD at. If NULL, then
296 * to "refs/heads/master". If this begins with "refs/" it will be
298 * * origin_url - If this is non-NULL, then after the rest of the
334 * if requested by flags) and working directory as needed. It will
335 * auto-detect the case sensitivity of the file system and if the
375 * Check if a repository's HEAD is detached
381 * @return 1 if HEAD is detached, 0 if it's not; error code if there
387 * Check if a worktree's HEAD is detached
394 * @return 1 if HEAD is detached, 0 if its not; error code if
401 * Check if the current branch is unborn
407 * @return 1 if the current branch is unborn, 0 if it's not; error
408 * code if there was an error
413 * Check if a repository is empty
419 * @return 1 if the repository is empty, 0 if it isn't, error code
420 * if the repository is corrupted
457 * @return 0, GIT_ENOTFOUND if the path cannot exist or an error code
475 * If the repository is bare, this function will always return
479 * @return the path to the working dir, if it exists
486 * If the repository is bare, it is the root directory for the repository.
487 * If the repository is a worktree, it is the parent repo's gitdir.
501 * If this repository is bare, setting its working directory
509 * "core.worktree" (if workdir is not the parent of the .git directory)
516 * Check if a repository is bare
519 * @return 1 if the repository is bare, 0 otherwise.
524 * Check if a repository is a linked work tree
527 * @return 1 if the repository is a linked work tree, 0 otherwise.
534 * If a configuration file has not been set, the default
536 * global and system configurations (if they are available).
552 * even if the underlying config files are modified.
566 * If a custom ODB has not been set, the default
582 * If a custom refsdb has not been set, the default database for
598 * If a custom index has not been set, the default
617 * execution can present it to the user for them to amend if they
625 * @return 0, GIT_ENOTFOUND if no message exists or an error code
671 * @return 0 on success, non-zero callback return value, GIT_ENOTFOUND if
692 * If a merge is in progress, invoke 'callback' for each commit ID in the
700 * @return 0 on success, non-zero callback return value, GIT_ENOTFOUND if
711 * If you simply want to calculate the hash of a file on disk with no filters,
712 * you can just use the `git_odb_hashfile()` API. However, if you want to
716 * Note: if the repository has `core.safecrlf` set to fail and the
722 * @param path Path to file on disk whose contents should be hashed. If the
725 * @param as_path The path to use to look up filtering rules. If this is
726 * NULL, then the `path` parameter will be used instead. If
741 * If the provided reference points to a Tree or a Blob, the HEAD is
744 * If the provided reference points to a branch, the HEAD will point
745 * to that branch, staying attached, or become attached if it isn't yet.
746 * If the branch doesn't exist yet, no error will be return. The HEAD
763 * If the provided committish cannot be found in the repository, the HEAD
766 * If the provided commitish cannot be peeled into a commit, the HEAD
799 * If the HEAD is already detached and points to a Commit, 0 is returned.
801 * If the HEAD is already detached and points to a Tag, the HEAD is
804 * If the HEAD is already detached and points to a non commitish, the HEAD is
864 * @return the active namespace, or NULL if there isn't one
870 * Determine if the repository was a shallow clone
873 * @return 1 if shallow, zero if not
892 * If both are set, this name and email will be used to write to the