Commit Graph

11 Commits (0fd4c699ddb2063a58584ac737475d44c0d16711)

Author SHA1 Message Date
Subhomoy Haldar 0fd4c699dd
tools: modify .gitattributes to categorize *.vsh and v.mod files properly (#13674) 2022-03-07 18:15:18 +02:00
Delyan Angelov fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself 2022-01-22 21:13:28 +02:00
Subhomoy Haldar 5143837d66
cmd/tools: add support for .editorconfig and improve `v init` to initialize missing files (#13230) 2022-01-20 13:01:30 +02:00
Subhomoy Haldar 4ecdb28f5a
tools: add `.gitattributes` with `v init` and `v new`(#12879) 2021-12-17 16:11:19 +02:00
Subhomoy Haldar 2794aa623a
tools: include `vls.log` in the .gitignore files for new V projects (#12522) 2021-11-19 19:23:35 +02:00
Delyan Angelov 2b92ccecb5
ci: fix `v build-examples` and `v build-tools` 2021-08-28 12:44:03 +03:00
Delyan Angelov 5098334e65
os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd) 2021-07-20 15:22:04 +03:00
Delyan Angelov c43791b0f5
ci: fix vcreate_test.v on windows 2021-06-22 20:08:20 +03:00
Delyan Angelov b6bd6d1d35
tests: add cmd/tools/vdoc/tests/vdoc_file_test.v, extract a `v.util.diff` module, cleanup 2021-06-22 18:52:34 +03:00
Ryan Roden-Corrent f0ad0b024e
v init: create a .gitignore in existing git repo if it does not exist yet (#10488) 2021-06-19 21:36:12 +03:00
Ryan Roden-Corrent 30fac1f877
toosl: fix `v init` - terminate newly created files with newlines, add a test (#10480)
* vcreate: Add test for `v init`.

* vcreate: Init git properly with no dir arg.

`v init` would fail to create a .gitignore file. When not providing a
dir arg, passing "" to create_git_repo would result in:

```
V panic: failed to create gitignore: failed to open file "/.gitignore"
```

* vcreate: Terminate files with newline.

Fixes #10478.
2021-06-16 19:57:51 +03:00