Re: vcsh repo status output
On Fri, May 27, 2016, 15:26 Marc Haber wrote: > status.showuntrackedfiles no is of course exactly the perfect solution. > > Thanks! Appreciated! > > Greetings > Marc > To be honest, I still think it should be the default for vcsh-repositories. > ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
On Fri, May 27, 2016 at 01:14:24PM +,  wrote: > On Fri, May 27, 2016, 14:26 Marc Haber wrote: > > On Thu, May 26, 2016 at 07:06:48PM +0200, Matthias Thubauville wrote: > > > I'm using vcsh in combination with myrepos, but here is how I solved the > > > issue: You can use a .gitignore.d folder which contains a gitignore file > > > for each vcsh repository > > > > vcsh write-gitignore does this automatically, Richi whispered to me. > > That's good enough. git is obviously flexible, but not _this_ > > flexible. vcsh is pushing git's limits far enough. > > > > `vcsh $repo config status.showuntrackedfiles no` > > The write-gitignore is better left for people with a version of git older > than 2013. Or for those who only searched for "ignore" and "add", while the correct search expression should have been "untracked". status.showuntrackedfiles no is of course exactly the perfect solution. Thanks! Appreciated! Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
On Fri, May 27, 2016, 14:26 Marc Haber wrote: > On Thu, May 26, 2016 at 07:06:48PM +0200, Matthias Thubauville wrote: > > I'm using vcsh in combination with myrepos, but here is how I solved the > > issue: You can use a .gitignore.d folder which contains a gitignore file > > for each vcsh repository > > vcsh write-gitignore does this automatically, Richi whispered to me. > That's good enough. git is obviously flexible, but not _this_ > flexible. vcsh is pushing git's limits far enough. > `vcsh $repo config status.showuntrackedfiles no` The write-gitignore is better left for people with a version of git older than 2013. -- ma > ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
On Thu, May 26, 2016 at 07:06:48PM +0200, Matthias Thubauville wrote: > I'm using vcsh in combination with myrepos, but here is how I solved the > issue: You can use a .gitignore.d folder which contains a gitignore file > for each vcsh repository > > # vcsh bash config -l | grep excludesfile > core.excludesfile=~/.gitignore_global > core.excludesfile=.gitignore.d/bash > > # git config -l | grep excludesfile > core.excludesfile=~/.gitignore_global > > # cat .gitignore.d/bash > * > !/.bash_aliases > !/.bash_aliases/* > !/.bash_functions > !/.bash_profile > !/.bashrc > !/.gitignore.d > !/.gitignore.d/bash > !/.profile > > # vcsh list | grep bash > bash > > It does not solve the fact that you have to use -f while adding files, > however I tend to update the corresponding file in ~/.gitignore.d vcsh write-gitignore does this automatically, Richi whispered to me. That's good enough. git is obviously flexible, but not _this_ flexible. vcsh is pushing git's limits far enough. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
Hi Marc, I'm using vcsh in combination with myrepos, but here is how I solved the issue: You can use a .gitignore.d folder which contains a gitignore file for each vcsh repository # vcsh bash config -l | grep excludesfile core.excludesfile=~/.gitignore_global core.excludesfile=.gitignore.d/bash # git config -l | grep excludesfile core.excludesfile=~/.gitignore_global # cat .gitignore.d/bash * !/.bash_aliases !/.bash_aliases/* !/.bash_functions !/.bash_profile !/.bashrc !/.gitignore.d !/.gitignore.d/bash !/.profile # vcsh list | grep bash bash It does not solve the fact that you have to use -f while adding files, however I tend to update the corresponding file in ~/.gitignore.d Hope that helps, Cheers On Thu, May 26, 2016 at 6:23 PM, Marc Haber wrote: > On Thu, May 26, 2016 at 08:20:55AM -0700, Corey Quinn wrote: > > Yes. That's how I run it, anyway. It's been working flawlessly for years. > > > > Remember, each repository doesn't know about the others; it's entirely > > possible to get "duelling repos" that keep switching the same file back > and > > forth. > > Too bad that committing * in .config/vcsh/repo.d/dotfiles.git/info/exclude > will fail for the same reason as committing a dotfiles.git/config > file. Since I need a post-checkout hook anyway, I will add this to the > hook as well. > > Using the .gitignore / info/exclude approach, however, has the side > effect of needing -f to add any file, which will probably train > finger memory to always use -f. > > Greetings > Marc > > -- > > - > Marc Haber | "I don't trust Computers. They | Mailadresse im Header > Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 > Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 > ___ > vcs-home mailing list > vcs-home@lists.madduck.net > http://lists.madduck.net/listinfo/vcs-home > ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
On Thu, May 26, 2016 at 08:20:55AM -0700, Corey Quinn wrote: > Yes. That's how I run it, anyway. It's been working flawlessly for years. > > Remember, each repository doesn't know about the others; it's entirely > possible to get "duelling repos" that keep switching the same file back and > forth. Too bad that committing * in .config/vcsh/repo.d/dotfiles.git/info/exclude will fail for the same reason as committing a dotfiles.git/config file. Since I need a post-checkout hook anyway, I will add this to the hook as well. Using the .gitignore / info/exclude approach, however, has the side effect of needing -f to add any file, which will probably train finger memory to always use -f. Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
Yes. That's how I run it, anyway. It's been working flawlessly for years. Remember, each repository doesn't know about the others; it's entirely possible to get "duelling repos" that keep switching the same file back and forth. On Thu, May 26, 2016 at 7:24 AM, Marc Haber wrote: > On Thu, May 26, 2016 at 06:27:51AM -0700, Corey Quinn wrote: > > Yes. Add a .gitignore that contains * to the repository. Then git add -f > just the files you want. > > That .gitignore would be ~/.gitignore for all repositories? Does vcsh > support having a file in multiple repositories? > > Greetings > Marc > > -- > > - > Marc Haber | "I don't trust Computers. They | Mailadresse im Header > Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 > Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 > ___ > vcs-home mailing list > vcs-home@lists.madduck.net > http://lists.madduck.net/listinfo/vcs-home > ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
On Thu, May 26, 2016 at 06:27:51AM -0700, Corey Quinn wrote: > Yes. Add a .gitignore that contains * to the repository. Then git add -f just > the files you want. That .gitignore would be ~/.gitignore for all repositories? Does vcsh support having a file in multiple repositories? Greetings Marc -- - Marc Haber | "I don't trust Computers. They | Mailadresse im Header Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home
Re: vcsh repo status output
Yes. Add a .gitignore that contains * to the repository. Then git add -f just the files you want. -- Corey Quinn 714-333-0711 > On May 26, 2016, at 3:35 AM, Marc Haber wrote: > > Hi, > > when I do vcsh dotfiles status, I - of course - get a lot of > "untracked" files, mainly all that aren't tracked by this vcsh repo. > > [5/103]marc@swivel:~$ vcsh dotfiles status > On branch master > Your branch is up-to-date with 'origin/master'. > Untracked files: > (use "git add ..." to include in what will be committed) > >.bash_history >.bash_initshared~ >.config/ >.jed/ >.lesshst >.mail/ >.ssh/ > > nothing added to commit but untracked files present (use "git add" to track) > [6/104]marc@swivel:~$ > > Is this just a cosmetic issue? Is there any possibility to get rid of > it? What would be the place/name for a repo-specific gitignore file? > > And, this is probably a general git question, is there a way to tell > git "all files that I didn't explicitly add are intentionally > untracked, don't bother me with those"? > > Greetings > Marc > > -- > - > Marc Haber | "I don't trust Computers. They | Mailadresse im Header > Leimen, Germany| lose things."Winona Ryder | Fon: *49 6224 1600402 > Nordisch by Nature | How to make an American Quilt | Fax: *49 6224 1600421 > ___ > vcs-home mailing list > vcs-home@lists.madduck.net > http://lists.madduck.net/listinfo/vcs-home ___ vcs-home mailing list vcs-home@lists.madduck.net http://lists.madduck.net/listinfo/vcs-home