X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=strbuf.h;h=eaa8704d5fa6e85d33953db77dd03de3cb462df4;hb=87e573f660dd0e871f3eb673d0b856488b6d8336;hp=89bd36e15a541e268117ff023afc6a43137cdd6e;hpb=41f64ad34b10697ceac68e3a3ad9df3baca9be34;p=git.git diff --git a/strbuf.h b/strbuf.h index 89bd36e15..eaa8704d5 100644 --- a/strbuf.h +++ b/strbuf.h @@ -11,7 +11,7 @@ * build complex strings/buffers whose final size isn't easily known. * * It is NOT legal to copy the ->buf pointer away. - * `strbuf_detach' is the operation that detachs a buffer from its shell + * `strbuf_detach' is the operation that detaches a buffer from its shell * while keeping the shell valid wrt its invariants. * * 2. the ->buf member is a byte array that has at least ->len + 1 bytes @@ -131,4 +131,7 @@ extern int strbuf_getline(struct strbuf *, FILE *, int); extern void stripspace(struct strbuf *buf, int skip_comments); extern int launch_editor(const char *path, struct strbuf *buffer, const char *const *env); +extern int strbuf_branchname(struct strbuf *sb, const char *name); +extern int strbuf_check_branch_ref(struct strbuf *sb, const char *name); + #endif /* STRBUF_H */