Re: magit diff range on folder
On Sat, Jul 10, 2021 at 3:43 PM Christian Barthel wrote: > On Sat, Jul 10 2021, Tim Visher wrote: > > Is `d -- ./folder RET r ref1..ref2` what you're looking for? > > Yes! Thanks a lot. > Glad that helped! FWIW `--` is a fairly common idiom amongst the various Magit popup windows that are fronting git commands that use that on the CLI. -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to magit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/magit/CAHa53uzhG4rnqH9GzVwfod2fWVUsG%2BjozJ8-SSEZ%3Df9ii4Sb6g%40mail.gmail.com.
Re: magit diff range on folder
Hi Christian, On Sat, Jul 10, 2021 at 3:53 AM Christian Barthel wrote: > is it possible to do a diff on a subfolder within magit (and > exclude all other changes)? > At the moment, I am using `d r', but this gives me a complete > list of all changes. I'd like to narrow this down to one > folder. > > In git(1): "git diff ref1..ref2 ./folder" > Is `d -- ./folder RET r ref1..ref2` what you're looking for? -- In Christ, Timmy V. https://blog.twonegatives.com http://five.sentenc.es -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to magit+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/magit/CAHa53uy8VH1i0x%2BBAOkfiO%2BtCwFqDXwZRJbBQH4_qZaQuSx%3D_g%40mail.gmail.com.
Re: magit-clone in a tramp directory?
https://github.com/magit/magit/pull/2806 On Thu, Sep 29, 2016 at 9:29 PM, Tim Visher <tim.vis...@gmail.com> wrote: > The following code works: > > ``` > (let ((default-directory "/scp:core:/opt/code")) > (start-file-process "clone-directory" "charnock" "git" "clone" > "g...@github.com:charnock/stephen.git" "/opt/code/stephen")) > ``` > > but this does not > > ``` > (let ((default-directory "/scp:core:/opt/code")) > (start-file-process "clone-directory" "charnock" "git" "clone" > "g...@github.com:charnock/stephen.git" "/scp:core:/opt/code/stephen")) > ``` > > so I think the problem is that we're not translating that remote target > directory name into a local filename. > > On Thu, Sep 29, 2016 at 9:19 PM, Tim Visher <tim.vis...@gmail.com> wrote: > >> This would be indicative of a problem with not stripping the magic file >> name properly but I believe start-file-process should do that for us… >> >> ``` >> $ mkdir -p '/scp:core:/opt/code/db-replicators' >> mkdir: cannot create directory ‘/scp:core:’: Permission denied >> ``` >> >> >> On Thu, Sep 29, 2016 at 9:08 PM, Tim Visher <tim.vis...@gmail.com> wrote: >> >>> I'm on magit 2.8.0 and when I call magit-clone in a tramp directory, it >>> fails with the following error message: >>> >>> ``` >>> error in process sentinel: Git error: #("could not create leading >>> directories of '/scp:core:/opt/code/db-replicators': Permission denied >>> (in /scp:core:/opt/code/)" 101 104 (tramp-default t)) >>> ``` >>> >>> When I call it in a non-tramp directory it works as expected. >>> >>> Is this the right behavior? >>> >>> -- >>> >>> In Christ, >>> >>> Timmy V. >>> >>> http://blog.twonegatives.com/ >>> http://five.sentenc.es/ -- Spend less time on mail >>> >> >> > -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to magit+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: magit-clone in a tramp directory?
This would be indicative of a problem with not stripping the magic file name properly but I believe start-file-process should do that for us… ``` $ mkdir -p '/scp:core:/opt/code/db-replicators' mkdir: cannot create directory ‘/scp:core:’: Permission denied ``` On Thu, Sep 29, 2016 at 9:08 PM, Tim Visher <tim.vis...@gmail.com> wrote: > I'm on magit 2.8.0 and when I call magit-clone in a tramp directory, it > fails with the following error message: > > ``` > error in process sentinel: Git error: #("could not create leading > directories of '/scp:core:/opt/code/db-replicators': Permission denied > (in /scp:core:/opt/code/)" 101 104 (tramp-default t)) > ``` > > When I call it in a non-tramp directory it works as expected. > > Is this the right behavior? > > -- > > In Christ, > > Timmy V. > > http://blog.twonegatives.com/ > http://five.sentenc.es/ -- Spend less time on mail > -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to magit+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
magit-clone in a tramp directory?
I'm on magit 2.8.0 and when I call magit-clone in a tramp directory, it fails with the following error message: ``` error in process sentinel: Git error: #("could not create leading directories of '/scp:core:/opt/code/db-replicators': Permission denied (in /scp:core:/opt/code/)" 101 104 (tramp-default t)) ``` When I call it in a non-tramp directory it works as expected. Is this the right behavior? -- In Christ, Timmy V. http://blog.twonegatives.com/ http://five.sentenc.es/ -- Spend less time on mail -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to magit+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: Problem with stash entry with untracked file
Hi Nathaniel, Notwithstanding the confusion between the --all and --include-untracked flags, it'd probably be useful to you to drop out of emacs and hit the shell and see what the git diff looks like there. It sounds like it might contain stuff you're not expecting at which point the problem really isn't in magit but in the state of git. If, on the other hand, the git diff is different in the CLI and in Magit then there's a problem here. :) On Wed, Sep 7, 2016 at 2:50 PM, Nathaniel Mishkinwrote: > I did a "git stash -u" from a shell (although the equivalent in Magit > seems to cause the same problem) and when I try to examine the stash from > Magit, Emacs goes CPU-bound for...well, as long as I can stand before I > start banging C-g until it comes back, at which point it shows me a buffer > that has the look of including many, many files/diffs--maybe every file in > the repo? > > Anyone know what might be going on? > > -- > You received this message because you are subscribed to the Google Groups > "magit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to magit+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "magit" group. To unsubscribe from this group and stop receiving emails from it, send an email to magit+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.