/** * Set the output stream for all hook scripts executed by this command * (pre-commit, commit-msg, post-commit). If not set it defaults to * {@code System.out}. * * @param hookStdOut * the output stream for hook scripts executed by this command * @return {@code this} * @since 3.7 */ public CommitCommand setHookOutputStream(PrintStream hookStdOut) { setHookOutputStream(PreCommitHook.NAME, hookStdOut); setHookOutputStream(CommitMsgHook.NAME, hookStdOut); setHookOutputStream(PostCommitHook.NAME, hookStdOut); return this; }
/** * Set the output stream for all hook scripts executed by this command * (pre-commit, commit-msg, post-commit). If not set it defaults to * {@code System.out}. * * @param hookStdOut * the output stream for hook scripts executed by this command * @return {@code this} * @since 3.7 */ public CommitCommand setHookOutputStream(PrintStream hookStdOut) { setHookOutputStream(PreCommitHook.NAME, hookStdOut); setHookOutputStream(CommitMsgHook.NAME, hookStdOut); setHookOutputStream(PostCommitHook.NAME, hookStdOut); return this; }
/** * Set the output stream for all hook scripts executed by this command * (pre-commit, commit-msg, post-commit). If not set it defaults to * {@code System.out}. * * @param hookStdOut * the output stream for hook scripts executed by this command * @return {@code this} * @since 3.7 */ public CommitCommand setHookOutputStream(PrintStream hookStdOut) { setHookOutputStream(PreCommitHook.NAME, hookStdOut); setHookOutputStream(CommitMsgHook.NAME, hookStdOut); setHookOutputStream(PostCommitHook.NAME, hookStdOut); return this; }