mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 01:58:32 +00:00

When processing status for a newly checked out repo, it is possible that there will be submodules that have not yet been initialized. The only way to distinguish these from untracked directories is to have some knowledge of submodules. This commit adds a new submodule API which, given a name or path, can determine if it appears to be a submodule and can give information about the submodule.
47 lines
943 B
C
47 lines
943 B
C
/*
|
|
* Copyright (C) 2009-2012 the libgit2 contributors
|
|
*
|
|
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
* a Linking Exception. For full terms see the included COPYING file.
|
|
*/
|
|
|
|
#ifndef INCLUDE_git_git_h__
|
|
#define INCLUDE_git_git_h__
|
|
|
|
#include "git2/version.h"
|
|
|
|
#include "git2/common.h"
|
|
#include "git2/threads.h"
|
|
#include "git2/errors.h"
|
|
|
|
#include "git2/types.h"
|
|
|
|
#include "git2/oid.h"
|
|
#include "git2/signature.h"
|
|
#include "git2/odb.h"
|
|
|
|
#include "git2/repository.h"
|
|
#include "git2/revwalk.h"
|
|
#include "git2/refs.h"
|
|
#include "git2/reflog.h"
|
|
|
|
#include "git2/object.h"
|
|
#include "git2/blob.h"
|
|
#include "git2/commit.h"
|
|
#include "git2/tag.h"
|
|
#include "git2/tree.h"
|
|
#include "git2/diff.h"
|
|
|
|
#include "git2/index.h"
|
|
#include "git2/config.h"
|
|
#include "git2/remote.h"
|
|
|
|
#include "git2/refspec.h"
|
|
#include "git2/net.h"
|
|
#include "git2/status.h"
|
|
#include "git2/indexer.h"
|
|
#include "git2/submodule.h"
|
|
#include "git2/notes.h"
|
|
|
|
#endif
|