Sha256: 3fb3ca1e059e586f6fcad7295131303f23ec8f582be6fd05bb9135ad197fddcc

Contents?: true

Size: 1.17 KB

Versions: 60

Compression:

Stored size: 1.17 KB

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * 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_message_h__
#define INCLUDE_git_message_h__

#include "common.h"
#include "buffer.h"

/**
 * @file git2/message.h
 * @brief Git message management routines
 * @ingroup Git
 * @{
 */
GIT_BEGIN_DECL

/**
 * Clean up message from excess whitespace and make sure that the last line
 * ends with a '\n'.
 *
 * Optionally, can remove lines starting with a "#".
 *
 * @param out The user-allocated git_buf which will be filled with the
 *     cleaned up message.
 *
 * @param message The message to be prettified.
 *
 * @param strip_comments Non-zero to remove comment lines, 0 to leave them in.
 *
 * @param comment_char Comment character. Lines starting with this character
 * are considered to be comments and removed if `strip_comments` is non-zero.
 *
 * @return 0 or an error code.
 */
GIT_EXTERN(int) git_message_prettify(git_buf *out, const char *message, int strip_comments, char comment_char);

/** @} */
GIT_END_DECL

#endif /* INCLUDE_git_message_h__ */

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
rugged-0.26.7 vendor/libgit2/include/git2/message.h
rugged-0.26.6 vendor/libgit2/include/git2/message.h
rugged-0.26.3 vendor/libgit2/include/git2/message.h
rugged-0.26.0 vendor/libgit2/include/git2/message.h
rugged-0.26.0b5 vendor/libgit2/include/git2/message.h
rugged-0.26.0b4 vendor/libgit2/include/git2/message.h
rugged-0.26.0b3 vendor/libgit2/include/git2/message.h
rugged-0.26.0b2 vendor/libgit2/include/git2/message.h
rugged-0.26.0b1 vendor/libgit2/include/git2/message.h
rugged-0.25.1.1 vendor/libgit2/include/git2/message.h
rugged-0.24.6.1 vendor/libgit2/include/git2/message.h
rugged-0.25.1 vendor/libgit2/include/git2/message.h
rugged-0.24.5 vendor/libgit2/include/git2/message.h
rugged-0.25.0 vendor/libgit2/include/git2/message.h
rugged-0.25.0b10 vendor/libgit2/include/git2/message.h
rugged-0.25.0b9 vendor/libgit2/include/git2/message.h
rugged-0.25.0b8 vendor/libgit2/include/git2/message.h
rugged-0.25.0b7 vendor/libgit2/include/git2/message.h
rugged-0.25.0b6 vendor/libgit2/include/git2/message.h
rugged-0.25.0b5 vendor/libgit2/include/git2/message.h