From 4c21407647b4b80113a07adb4967e4f19416f9ee Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Tue, 27 Apr 2021 15:03:26 +0200 Subject: [PATCH] Add self advertisement header --- src/template.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/template.rs b/src/template.rs index b40f540..1ccaac3 100644 --- a/src/template.rs +++ b/src/template.rs @@ -120,6 +120,7 @@ impl Template { .chain_err(|| "Error while opening gitignore file to write template")?; let mut writer = BufWriter::new(file); + writer.write_all(b"# template downloaded with gitig (https://git.schneider-hosting.de/schneider/gitig) from https://github.com/github/gitignore\n")?; writer.write_all(self.content.as_ref().expect("checked before to be some").as_bytes())?; trace!("Wrote all content"); Ok(())