2 Commits

  1. 4
      Cargo.lock
  2. 2
      Cargo.toml
  3. 1
      src/template.rs

4
Cargo.lock

@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "addr2line"
version = "0.14.1"
@ -352,7 +354,7 @@ checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce"
[[package]]
name = "gitig"
version = "0.2.0"
version = "0.2.1"
dependencies = [
"directories",
"error-chain",

2
Cargo.toml

@ -1,6 +1,6 @@
[package]
name = "gitig"
version = "0.2.0"
version = "0.2.1"
authors = ["Marcel Schneider <gitig@webschneider.org>"]
description = "A cli utility to manage gitignore files easily"
edition = "2018"

1
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(())

Loading…
Cancel
Save