Re: [git-users] git checkout file with custom mtime

2019-01-09 Thread Daniel Fanjul
The mtime of the files in my working copy change when I amend or rebase or checkout different branches or in general when I use git commands. I carefully store the mtime when these files are generated or overwritten and restore it when it is going to be read. The tool I use is https://packages.ubun

Re: [git-users] git checkout file with custom mtime

2019-01-09 Thread Konstantin Khomoutov
On Sat, Jan 05, 2019 at 10:44:47PM +0100, Daniel Fanjul wrote: > I'm on Ubuntu. I do not use LFS. I track mods and saved games of > Skyrim with git, TESV.exe sorts the saved games only by their mtime. I > know it is not the most usual use case for git. > > I agree with that viewpoint and I like th

Re: [git-users] git checkout file with custom mtime

2019-01-09 Thread Philip Oakley
Hi Daniel, I think between us we have two wrongs and a right. On 06/01/2019 14:11, Daniel Fanjul wrote: Yes, I know about it but it does not work completely for me: Examples: $ git update-index --no-assume-unchanged saves/* && touch saves/* && time git status saves/* 20 seconds reading file co

Re: [git-users] git checkout file with custom mtime

2019-01-06 Thread Daniel Fanjul
Yes, I know about it but it does not work completely for me: Examples: $ git update-index --no-assume-unchanged saves/* && touch saves/* && time git status saves/* 20 seconds reading file contents that did not actually change. $ git update-index --assume-unchanged saves/* && touch saves/* && time

Re: [git-users] git checkout file with custom mtime

2019-01-06 Thread Philip Oakley
Hi Daniel (trimmed the cc, removing the Git List as they won't have seen these HTML emails.. I'd only added it to confirm their address and forgot to remove it, doh!) Yes, the 'git update-index --assume-unchanged' is confusing because actually it is a _user_ promise not to change things, so

Re: [git-users] git checkout file with custom mtime

2019-01-05 Thread Daniel Fanjul
I'm on Ubuntu. I do not use LFS. I track mods and saved games of Skyrim with git, TESV.exe sorts the saved games only by their mtime. I know it is not the most usual use case for git. I agree with that viewpoint and I like the way git works right now, I do not want to change that. Checking out the

Re: [git-users] git checkout file with custom mtime

2019-01-05 Thread Philip Oakley
Daniel, Do you use the Git LFS (Large File System) add-on?, are you on Windows or Linux?, and what tools need mtime (or is it something about the process of using the tool..)? The Git viewpoint is that the mtime shouldn't be important for the version storage & control aspects, though it may

[git-users] git checkout file with custom mtime

2019-01-05 Thread Daniel Fanjul
Hi all, I have some large files tracked in git and I have to track their mtime because of some legacy software. With another tool I save and restore their mtime. When I restore their mtime git status rereads the files to update the mtime in the index. I would like to improve that because there

Re: [git-users] Git checkout behavior when you have a tag and a branch with the same name

2017-04-05 Thread Ferdinando Santacroce
Wonderful, thank you very much Konstantin! :) Nando Il giorno mercoledì 5 aprile 2017 12:01:07 UTC+2, Konstantin Khomoutov ha scritto: > > On Wed, 5 Apr 2017 00:22:28 -0700 (PDT) > Ferdinando Santacroce > wrote: > > [...] > > Supposing there are a branch and a tag called , when I do: > > $ gi

Re: [git-users] Git checkout behavior when you have a tag and a branch with the same name

2017-04-05 Thread Konstantin Khomoutov
On Wed, 5 Apr 2017 00:22:28 -0700 (PDT) Ferdinando Santacroce wrote: [...] > Supposing there are a branch and a tag called , when I do: > $ git checkout something > Git checks out the tag , and not the branch. > Furthermore, it leaves me in a detached HEAD state. > > So, I'm looking for document

[git-users] Git checkout behavior when you have a tag and a branch with the same name

2017-04-05 Thread Ferdinando Santacroce
Hi. I'm helping some guys to migrate from SVN to Git. They are facing some obstacles, and I'm learning new things about SVN and Git while helping them solve those problems :) It happened that in a repo there was a tag and a branch with the same name. Leaving SVN aside for a moment, I quickly bui

Re: [git-users] git checkout crashes after server being updated to Debian X86_64

2016-10-18 Thread Konstantin Khomoutov
On Tue, 18 Oct 2016 07:56:31 -0700 (PDT) Raffael Reichelt wrote: > I have a serious problem with git, After my provider had updated to a > X86_64 architecture git crashes with various memory-related errors. > This is happening remote when pushing to the repository from my local > machine as well

[git-users] git checkout crashes after server being updated to Debian X86_64

2016-10-18 Thread Raffael Reichelt
Hello! I have a serious problem with git, After my provider had updated to a X86_64 architecture git crashes with various memory-related errors. This is happening remote when pushing to the repository from my local machine as well as trying it on a shell on the server itself. This are th

Re: [git-users] Git checkout visual issue in CMD

2015-12-17 Thread Philip Oakley
Sent: Thursday, December 17, 2015 7:51 PM Subject: Re: [git-users] Git checkout visual issue in CMD Deigo, If you look carefully, the "*" asterisk is missing as well as the colourisation. This can be traced to builtin/branch.c#L423 which does an exact compare of the two as

Re: [git-users] Git checkout visual issue in CMD

2015-12-17 Thread Philip Oakley
e a go at a sending a quick patch upstream g...@vger.kernel.org Philip - Original Message - From: Diego J. To: Git for human beings Sent: Wednesday, December 16, 2015 3:57 PM Subject: [git-users] Git checkout visual issue in CMD When I "checkout" a branch using differe

Re: [git-users] Git checkout visual issue in CMD

2015-12-17 Thread Konstantin Khomoutov
On Wed, 16 Dec 2015 23:37:50 +0100 Magnus Therning wrote: > Diego J. writes: > > > When I "checkout" a branch using different Upper Case/Lower Case > > than the original, the branch doesn't show in "git branch [--list]" > > > > > >

Re: [git-users] Git checkout visual issue in CMD

2015-12-16 Thread Magnus Therning
Diego J. writes: > When I "checkout" a branch using different Upper Case/Lower Case than the > original, the branch doesn't show in "git branch [--list]" > > > Here's what happens on Linux (git versi

[git-users] Git checkout visual issue in CMD

2015-12-16 Thread Diego J.
When I "checkout" a branch using different Upper Case/Lower Case than the original, the branch doesn't show in "git branch [--list]" -- You received this message because you are subscribed to t

[git-users] git checkout -t: better error

2014-09-15 Thread Andrew Pennebaker
Could we improve the error message for `git checkout -t`? Sometimes I forget to type the remote name. Something like: "Missing remote or branch name; try -b" -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this g

Re: [git-users] git checkout

2014-03-25 Thread Konstantin Khomoutov
On Tue, 25 Mar 2014 01:35:11 -0700 (PDT) Gabriele Salvati wrote: > I'd like to know how git restore files when checkout is executed. > For each commit git knows the diff (added and deleted lines) with the > parent commit. If git use only diff it must start from the init and > go forward until th

[git-users] git checkout

2014-03-25 Thread Gabriele Salvati
Hi to all, I'd like to know how git restore files when checkout is executed. For each commit git knows the diff (added and deleted lines) with the parent commit. If git use only diff it must start from the init and go forward until the current commit. This solution could be very slowly. I suppo

Re: [git-users] git checkout from one directory to another

2013-10-21 Thread Aaron Cook
I would have never thought to read that thread based on the title :) I did find something here that I think answers my question http://stackoverflow.com/questions/4479960/git-checkout-to-a-specific-folder On Monday, October 21, 2013 10:55:31 AM UTC-4, Konstantin Khomoutov wrote: > > On Mon, 21

Re: [git-users] git checkout from one directory to another

2013-10-21 Thread Konstantin Khomoutov
On Mon, 21 Oct 2013 07:43:15 -0700 (PDT) Aaron Cook wrote: > I need to checkout a copy of a folder into another temporary > "scratch" folder. > > For example, I have a directory > > /myproject/junk > > I want to checkout a previous copy of "junk into "junk_temp" so I get > /myproject/junk <- H

[git-users] git checkout from one directory to another

2013-10-21 Thread Aaron Cook
I need to checkout a copy of a folder into another temporary "scratch" folder. For example, I have a directory /myproject/junk I want to checkout a previous copy of "junk into "junk_temp" so I get /myproject/junk <- HEAD /myproject/junk_temp <- some other rev. I know I could just do a git chec

Re: [git-users] git checkout doesn't work?

2013-01-10 Thread William Mizuta
In C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks folder type the following command: git checkout scenarios William Seiti Mizuta @williammizuta Desenvolvedor da Caelum On Fri, Jan 11, 2013 at 4:00 AM, Ishayahu Lastov wrote: > what do you mean by "use the directory scenarios to remove al

Re: [git-users] git checkout doesn't work?

2013-01-10 Thread Ishayahu Lastov
what do you mean by "use the directory scenarios to remove all files modification that are in scenarios directory." 2013/1/11 William Mizuta > You are right. Git checkout should remove your modifications in the file. > Maybe it's a bug. Send it to the git technical list at vger.kernel.org ( > h

Re: [git-users] git checkout doesn't work?

2013-01-10 Thread William Mizuta
You are right. Git checkout should remove your modifications in the file. Maybe it's a bug. Send it to the git technical list at vger.kernel.org ( http://vger.kernel.org/vger-lists.html#git) If you want to remove your modification, instead of using the file to the git checkout command, use the dir

[git-users] git checkout doesn't work?

2013-01-10 Thread Ishayahu Lastov
This is my session on Win7 x64: Microsoft Windows [Version 6.1.7601] (c) Корпорация Майкрософт (Microsoft Corp.), 2009. Все права защищены. C:\Dropbox\Dropbox\Wesnoth\Apocryphs>cd Apokryphs.Orks C:\Dropbox\Dropbox\Wesnoth\Apocryphs\Apokryphs.Orks>git status # On branch master # Your branch is beh

Re: [git-users] git checkout-index unable to create file (permission denied) on some files

2012-10-30 Thread Konstantin Khomoutov
On Mon, 29 Oct 2012 18:22:47 -0700 (PDT) Philipp Kraus wrote: > I'm running a PHP script which pulls & checkouts a Git repo. The > script clones first the repo and on each next call it should get all > new changes (git clone and than git pull). > Sometime I get the message: > > git checkout-inde

[git-users] git checkout-index unable to create file (permission denied) on some files

2012-10-29 Thread Philipp Kraus
Hello, I'm running a PHP script which pulls & checkouts a Git repo. The script clones first the repo and on each next call it should get all new changes (git clone and than git pull). Sometime I get the message: git checkout-index unable to create file (permission denied) exspecially on the .g

Re: [git-users] git checkout " silently fails

2012-09-07 Thread Rick DeNatale
On Tue, Sep 4, 2012 at 3:44 PM, Philip Oakley wrote: > If both cases of checking out a path you are expected to provide a > , not a . The git glossary says that a tree-ish is a > commit, tree, or tag - nothing about a branch. A branch name is perfectly suitable to use as a . A branch is really

Re: [git-users] git checkout " silently fails

2012-09-07 Thread Antony Male
On 04/09/2012 18:21, Senthil wrote: This may be an edge case which has been discussed, but I did not find any topics relating to this. If file 1 exists on branch B but not on branch A, I am seeing this behavior: git checkout A git checkout A -- 1 error: pathspec '1' did not match any file(s) know

Re: [git-users] git checkout " silently fails

2012-09-04 Thread Philip Oakley
om Sent: Tuesday, September 04, 2012 6:21 PM Subject: [git-users] git checkout " silently fails This may be an edge case which has been discussed, but I did not find any topics relating to this. If file 1 exists on branch B but not on branch A, I am seeing this behavior: git checkout A

[git-users] git checkout " silently fails

2012-09-04 Thread Senthil
This may be an edge case which has been discussed, but I did not find any topics relating to this. If file 1 exists on branch B but not on branch A, I am seeing this behavior: git checkout A git checkout A -- 1 error: pathspec '1' did not match any file(s) known to git. git checkout B git checkout

Re: [git-users] "git checkout ." overwrites all my changes

2012-07-12 Thread Philip Oakley
ou inform the person who suggeste that form of the command of the error of their ways. Maybe they should have warned you ;-) Philip - Original Message - From: miraz To: git-users@googlegroups.com Sent: Thursday, July 12, 2012 1:35 PM Subject: [git-users] "git checkout ." ov

Re: [git-users] "git checkout ." overwrites all my changes

2012-07-12 Thread Konstantin Khomoutov
On Thu, 12 Jul 2012 05:35:09 -0700 (PDT) miraz wrote: > Hi, > entering the command > git checkout . > in the root directory of my git repository overwrites all my modified > files without any warning. > Why is there such a dangerous command? Because the user should have a way to overwrite all her

[git-users] "git checkout ." overwrites all my changes

2012-07-12 Thread miraz
Hi, entering the command git checkout . in the root directory of my git repository overwrites all my modified files without any warning. Why is there such a dangerous command? Mirek. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To vi

Re: [git-users] GIT checkout with custom code

2011-06-27 Thread Konstantin Khomoutov
On Sun, 26 Jun 2011 23:39:08 -0700 (PDT) Thorsten Peters wrote: > i need a checkout of a branch with different custom folders for each > project. > i test "submodules" and think that this is not the correct way for my > problem. > (i want to commit and update the custom folder) > > What about th

[git-users] GIT checkout with custom code

2011-06-26 Thread Thorsten Peters
i need a checkout of a branch with different custom folders for each project. i test "submodules" and think that this is not the correct way for my problem. (i want to commit and update the custom folder) What about this: Structur: custom/test.php index.php I checkout a branch and add "custom" t

Re: [git-users] git checkout in a subdirectory

2011-04-04 Thread Konstantin Khomoutov
On Mon, 4 Apr 2011 02:20:42 -0700 (PDT) alenoosh wrote: > I have recently converted my svn repository to git repository (A) but > I did > not convert the svn branches , here is my problem : > > One of my svn branches is a branch of a subdirectory , I have > converted that > to a separate git rep

[git-users] git checkout in a subdirectory

2011-04-04 Thread alenoosh
Hi all I have recently converted my svn repository to git repository (A) but I did not convert the svn branches , here is my problem : One of my svn branches is a branch of a subdirectory , I have converted that to a separate git repo (B) and created a git branch from that in the (A) git repo but